Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Re: Command line args

by iamcal (Friar)
on Jun 06, 2001 at 19:30 UTC ( [id://86267]=note: print w/replies, xml ) Need Help??

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

perfect. i was confusing <> and <STDIN> and forgot the magic. thanks!

Replies are listed 'Best First'.
Re: Command line args
by John M. Dlugosz (Monsignor) on Jun 06, 2001 at 19:34 UTC
    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.


      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 address"

      Where wrapper is the script wrapper, and address is the specific alias (many aliases use this one script).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://86267]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-06-14 22:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.