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

optional command line arguments

by Molten (Initiate)
on Aug 07, 2012 at 18:19 UTC ( [id://986051]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    int b = ({ multiple commands here; final command = return value; });
    
  2. or download this
    my $a = shift || ({ print "enter in value for a:"; <STDIN>; });
    
  3. or download this
    #!/user/local/bin/perl
    use warnings;
    ...
    
    print "a: $a\n";
    print "b: $b\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-20 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found