RE: Windows not passing args. in @ARGV - why not???

2004-03-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO



I need some help 
with a dumb problem I've got:For some reason, arguments from the Windows 
cmd.exe command line are no longer being passed into my Perl scripts via 
@ARGV.Used to work fine.I tried removing Perl. Reinstalled (ActiveState) Perl (5.8.3.809-MSWin32-x86.msi) (on XP). No help!Anyone 
have any ideas?I have noticed of late that when you do file 
assoications which one has under windows, it is not setup correctly. Under 
folders and File Types, for perl and Run command, it should look 
somethinglike:

perl.exe "%1" %*

 If it does not, then change it as such and you should get 
your arguments. If it already looks like that, then need a snippet of your 
code so we can help.

 Any questions and/or problems, please let me know. 
 Thanks. 
Wags ;) Int: 9-8-002-2224 
Ext: 
408-323-4225x2224 


**
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Windows not passing args. in @ARGV - why not???

2004-03-05 Thread Lynn. Rickards

I need some help with a dumb problem I've got:

For some reason, arguments from the Windows cmd.exe command line are no longer being 
passed into my
Perl
scripts via @ARGV.

Used to work fine.

I tried removing Perl. Reinstalled (ActiveState) Perl (5.8.3.809-MSWin32-x86.msi) (on 
XP). No help!

Anyone have any ideas?

-Colin

You mean this doesn't work? Or you're doing something different?
---aa.pl--
#!perl -w

use strict;

unless(@ARGV)
{
print No args\n;
exit 0;
}

for(my $c = 0; $c  @ARGV; $c++)
{
print Arg  . $c .  =  . $ARGV[$c] . \n;
}
-

D:\testperl aa.pl
No args

D:\testperl aa.pl one two three
Arg 0 = one
Arg 1 = two
Arg 2 = three

D:\test

- Lynn.

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs