Fixed the problem. Went back to http://www.geocities.com/scottlhenderson/mailgrep.pl.txt, selected all text and pasted it into a new mailgrep.pl. Did the same for openlogfile.pl. Seems to have fixed the problem. If I type mailgrep.pl on its own, I now get a help file I didn't before.
Hmm, sounds like garbage got inserted...
suggestion: in the future, don't copy-paste scripts, there is too much chance for error... use wget or "save as" in your browser to directly download the file instead..
