perfect. i was confusing <> and <STDIN> and forgot the magic. thanks! | [reply] [d/l] [select] |
It's better to use the magic. That way you can write either foo fname.txt or bar | foo without any care in the implementation of foo.—John
| [reply] [d/l] [select] |
Thanks for the advice, but in this case there is not flexability in the way the script is called. It's an email handler which gets called via sendmail's aliases files. The aliases entry is:
"|wrapper myscript.pl address"
Where wrapper is the script wrapper, and address is the specific alias (many aliases use this one script).
| [reply] [d/l] |