Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: query about perl

by linuxer (Deacon)
on Jun 18, 2010 at 13:27 UTC ( #845374=note: print w/ replies, xml ) Need Help??


in reply to query about perl

Try print $ARGV[0].

Addendum:

Extracted from perlvar

@ARGV The array @ARGV contains the command-line arguments intended for the s +cript. $#ARGV is generally the number of arguments minus one, because + $ARGV[0] is the first argument, not the program's command name itsel +f. See $0 for the command name.


Comment on Re: query about perl
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-02 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls