Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: ARGV and online Perl commands

by 2teez (Vicar)
on Jan 10, 2013 at 21:30 UTC ( [id://1012745]=note: print w/replies, xml ) Need Help??


in reply to ARGV and online Perl commands

"...Is there something I'm missing? .."

Previous comments are true, when you are on UNIX systems, but reverse is the case on Win systems.
This example perl -e "print $ARGV[1];" ONE- TWO- ## prints TWO- works as expected on Win system. But with single-quotes, you get this error message: Can't find string terminator "'" anywhere before EOF at -e line 1.

In fact, perlrun has this to say: ...On some systems, you may have to change single-quotes to double ones, which you must not do on Unix or Plan 9 systems...

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found