in reply to Re: Re: Command line args
in thread Command line args

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

Replies are listed 'Best First'.
Re: Re: Command line args
by iamcal (Friar) on Jun 06, 2001 at 19:59 UTC
    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).