in reply to passing parameters from the command line

Expanding on Grandfather's explanation, check the association for ".pl". (In Explorer, do Tools->Folder Options -> File Types, select .pl) The default action should be "Run".

Now look at how the executable for "Run" is configured.
In my case, it says:

"D:\Perl\PXPerl\bin\perl_pause.bat" "%1"
Notice that only ONE parameter "%1" is being passed, and that is the name of the program. The args you want passed would not work on my system, and I get the results you are getting, and the message "Use of uninitialized value in concatenation (.) or string at ..." when attempting to print $ARGV[0]".

The fix is to change the executable line to

"D:\Perl\PXPerl\bin\perl_pause.bat" "%1" %2 %3 %4 %5 %6 %7 %8 %9

     You're just jealous cause the voices are only talking to me.

     No trees were killed in the sending of this message.    However, a large number of electrons were terribly inconvenienced.

Replies are listed 'Best First'.
Re^2: passing parameters from the command line
by TomGeukens (Initiate) on Dec 08, 2005 at 17:33 UTC
    Hey Guys, thanks a lot for the information. Messing around with the executable line did the trick!!!