RE: Script's command-line options under Windows

2006-02-02 Thread Bakken, Luke
Daniel Kasak wrote: > Timothy Johnson wrote: >> It sounds like there is a problem with your file association. >> >> Open HKEY_CLASSES_ROOT and go to Perl-->Shell-->Open-->Command. >> >> The (Default) entry should probably read: >> >> "C:\Perl\bin\perl.exe" "%1" %* >> > I'll check it out tomorro

Re: Script's command-line options under Windows

2006-02-01 Thread Daniel Kasak
Timothy Johnson wrote: It sounds like there is a problem with your file association. Open HKEY_CLASSES_ROOT and go to Perl-->Shell-->Open-->Command. The (Default) entry should probably read: "C:\Perl\bin\perl.exe" "%1" %* I'll check it out tomorrow when I can get back to the PC. Thanks :)

RE: Script's command-line options under Windows

2006-02-01 Thread Timothy Johnson
L PROTECTED] Sent: Wednesday, February 01, 2006 8:20 PM To: Timothy Johnson; Perl Beginners Subject: Re: Script's command-line options under Windows Timothy Johnson wrote: > One more question. Does it work if you do it like this? > > perl script_name.pl argument > Ye

Re: Script's command-line options under Windows

2006-02-01 Thread Daniel Kasak
Timothy Johnson wrote: One more question. Does it work if you do it like this? perl script_name.pl argument Yes, actually! Strange ... very strange. Thanks :) -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-76

RE: Script's command-line options under Windows

2006-02-01 Thread Timothy Johnson
> > >-Original Message- >From: Daniel Kasak [mailto:[EMAIL PROTECTED] >Sent: Wednesday, February 01, 2006 6:09 PM >To: Timothy Johnson; Perl Beginners >Subject: Re: Script's command-line options under Windows > >Timothy Johnson wrote: > >>Just to

Re: Script's command-line options under Windows

2006-02-01 Thread Daniel Kasak
Timothy Johnson wrote: Just to clarify, you're able to invoke the script by typing script_name.pl, right? Yep. Because one possible reason would be that your file association somehow didn't take when you installed activeperl. Also, does it work if you do: my $userid = $ARGV[0];

RE: Script's command-line options under Windows

2006-02-01 Thread Timothy Johnson
al Message- From: Daniel Kasak [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 5:40 PM To: Perl Beginners Subject: Script's command-line options under Windows Hi all. I've got an app than runs on Linux and Windows. I invoke it: script_name.pl USERID where USERID is a number

Script's command-line options under Windows

2006-02-01 Thread Daniel Kasak
Hi all. I've got an app than runs on Linux and Windows. I invoke it: script_name.pl USERID where USERID is a number that identifies the user. Under Linux, and under *some* Windows 2000 installations, I can then get the value of USERID: my $userid = shift; However I just noticed that on a ne