redss has asked for the wisdom of the Perl Monks concerning the following question:
Using activestate perl on Win2000, I was able to pass command line parameters to my program without prefacing the perl script with the word perl.
e.g. foo.pl 2 3
Now on XP (and a more recent, i.e. the latest version of activestate perl), the command line parameters aren't passed unless I preface the word perl in front...
e.g. perl c:\myprograms\foo.pl 2 3
I'm not sure if this has to do with winXP or the activestate perl version.
Is there a setting I can change to enable command line processing without having to include the word perl before the script name?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems passing command line parameters to activestate perl on XP
by Corion (Patriarch) on Jan 13, 2007 at 15:24 UTC | |
|
Re: Problems passing command line parameters to activestate perl on XP
by BrowserUk (Patriarch) on Jan 13, 2007 at 15:50 UTC | |
by redss (Monk) on Jan 13, 2007 at 17:23 UTC | |
by redss (Monk) on Jan 13, 2007 at 16:01 UTC | |
by BrowserUk (Patriarch) on Jan 13, 2007 at 16:06 UTC | |
by redss (Monk) on Jan 13, 2007 at 16:48 UTC | |
|
Re: Problems passing command line parameters to activestate perl on XP
by ww (Archbishop) on Jan 13, 2007 at 15:35 UTC |