Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: ARGV and online Perl commands

by blahblahblah (Priest)
on Jan 10, 2013 at 20:07 UTC ( #1012733=note: print w/ replies, xml ) Need Help??


in reply to ARGV and online Perl commands

The shell is evaluating "$ARGV", which comes out as an empty string. Effectively, it is just like running the following:

$ perl -e "print [1];" ONE- TWO- ARRAY(0x7fd5ea803ed0)$
As toolic pointed out, one way to prevent the shell from evaluating $ARGV is by using single quotes around your command.

tiny update: cleaned up the prompt, in order to simplify my example.


Comment on Re: ARGV and online Perl commands
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-29 11:32 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 (263 votes), past polls