Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello:
I am wanting to pass three parameters from the command promt to my script: <Directory> <oldinstance> <newinstance> The <Directory> parameter is messing my @ARGV array. The <Directory> is something like this: C:\Documents and Settings\ordaza\Desktop\ordaz\perl\perlRip\testcases. When I try this the results are as follows: $ARGV[0] # C:\Documents $ARGV[1] # and $ARGV[2] # Settings\Me\Desktop\jobs\perl\perlRip\testcases My desired results are as follows: $ARGV[0] # C:\Documents and Settings\ordaza\Desktop\ordaz\perl\perlRip\testcases $ARGV[1] # second param $ARGV[2] # third param Edit kudra, 2002-08-29 Replaced literal [ and ] thank you In reply to argument readin from command prompt by chuleto1
|
|