PC Review


Reply
Thread Tools Rate Thread

Command-line parameters lost to Perl

 
 
Rich Pasco
Guest
Posts: n/a
 
      11th Jul 2008
I run Indigo Perl under Windows XP. My problem is that Perl scripts
aren't able to see the command line that invoked them, unless I
prefix their name with an explicit call to my Perl interpreter.
Why not?

For example, I have a simple script listargs.pl which counts and
lists its command-line parameters (in array @ARGV).

If I invoke:
listargs.pl a b c
then I get:
0 parameters

However, if I invoke
perl listargs.pl a b c
then I get:
3 parameters:
a
b
c
as desired.

Can anyone suggest why the command-line parameters are lost in the
first form?

- Rich
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Parameters Glen Microsoft Dot NET Framework Forms 8 17th Apr 2006 06:49 PM
command-line parameters Alain Bourgeois Windows XP MovieMaker 0 24th Mar 2006 07:20 PM
Re: Command Line parameters Herfried K. Wagner [MVP] Microsoft VB .NET 0 7th Sep 2004 07:54 PM
Perl via Command Line in XP Grumpy Aero Guy Windows XP Customization 0 6th Mar 2004 03:28 PM
Command line parameters and MDE Dawna Microsoft Access Security 3 3rd Oct 2003 12:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.