Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: ARGV and online Perl commands

by toolic (Bishop)
on Jan 10, 2013 at 19:32 UTC ( #1012723=note: print w/ replies, xml ) Need Help??


in reply to ARGV and online Perl commands

Here's what I get at my unix prompt:

perl -e "print $ARGV[1];" ONE- TWO- ARGV: Undefined variable.

But, if I change to single quotes to make my shell happy:

perl -e 'print $ARGV[1];' ONE- TWO- TWO-

UPDATE: when I switch my shell from tcsh to bash, I can duplicate your result.


Comment on Re: ARGV and online Perl commands
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-30 08:25 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 (270 votes), past polls