I am just a newbie here and this probably is not the best solution, but have you considered placing the argument in quotes. It works for me.


script.pl -a something -b "something else" -c another_one -d etc

Kevin


From: Jayesh Patel <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: getopt::std problem ignoring options
Date: Thu, 30 Jan 2003 16:14:44 -0500

Hi all,

     Just wondering how some of you are handling this issue that I have.
I am using the getopt::std.  When I pass in parameters to my script with
a possible mistake, the getopts ignores the rest of my switches.
For example:

script.pl -a something -b something else -c another_one -d etc

when getopts gets to the else, it doesn't proceed and populate my hash
for c or d.  Just populates a and b.  Anyone have any idea ?

I'm using Active Perl 5.6.1   &   Getopt/Std.pm 1.02

I looked at other getopt modules on CPAN - too many to look thru.  Any
recommendations ??

Thanks in advance,

Jayesh Patel  @
Sr. Software Configuration Engineer
* Tel: 732-483-3406
* Fax: 732-483-3012
* E-mail: [EMAIL PROTECTED]




<< Tellium_logo.gif >>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to