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

Re: Processing @ARGV using just spaces

by cforde (Monk)
on May 17, 2001 at 22:23 UTC ( [id://81326]=note: print w/replies, xml ) Need Help??


in reply to Processing @ARGV using just spaces

It looks to me like your command interpreter (shell) is interpreting the parameters before Perl even sees the argument string. Try this to see what is happening:
use strict; for (my $j = 0; $j <= $#ARGV; $j++) { print "ARGV[$j] = $ARGV[$j]\n"; }
For instance:
t.pl one,two three four ARGV[0] = one,two ARGV[1] = three ARGV[2] = four t.pl "one two" three four ARGV[0] = one two ARGV[1] = three ARGV[2] = four
Notice that the command interpreter that I'm using has different "features" than yours...

Have fun,
Carl Forde

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-25 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found