Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Can @ARGV work within Perl functions or is it just for script input?

by jdporter (Paladin)
on Feb 09, 2009 at 20:30 UTC ( [id://742570]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $arg1 = shift;
    
  2. or download this
        local @ARGV = @_;
    
  3. or download this
    use Getopt::Long;
    
    ...
    do_awesome_things -v => -file => 'foo.txt', -file => 'bar.txt';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found