Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Command line argument

by tadman (Prior)
on Jun 03, 2002 at 13:13 UTC ( [id://171221]=note: print w/replies, xml ) Need Help??


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

Say what? That's the same as this:
$argument = undef; while (0) { }
This is the noise you'll be making when you try and run that program: "ARVG! ARVG!"

Remember, when pushing buttons on the keyboard, it is important to hit them in the right order. Must be one of those late nights/early mornings?

I think what you meant was:
$|++; my $argument = $ARGV[0] || warn "No argument given\n"; do { print "Enter an argument: "; chomp ($argument = <STDIN>); } while (!length($argument));

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-19 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found