Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: command line arg help

by mkmcconn (Chaplain)
on Nov 04, 2001 at 03:16 UTC ( #123108=note: print w/replies, xml ) Need Help??


in reply to command line arg help

Try:
$ who | myprog -r -

update
Actually, I shouldn't let this go without recommending that you try Getopt.
And it may be that you meant to write something like:

elsif ($ARGV[0] =~ m/^-r$/){ $option = shift @ARGV; &doit($_) for <STDIN>; }
... but I wasn't sure that's what you meant.
No endorsement of this method implied.
mkmcconn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-03-28 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (69 votes). Check out past polls.

    Notices?