> -----Original Message----- > From: Jayesh Patel [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 8:15 AM > To: '[EMAIL PROTECTED]' > Subject: getopt::std problem ignoring options > > > 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 ?? >
Just quote the offending ones eg. script.pl -a something -b "something else" -c another_one -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]