![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: GetOpt ignore required argumentsby linuxer (Curate) |
on Aug 21, 2011 at 19:43 UTC ( #921547=note: print w/replies, xml ) | Need Help?? |
So you are referring to Getopt::Std? Did you try to use -- to mark the end of the options? For example: ./skript.pl -opt1 -opt2 foo -- -take -us -as -argumentsSee the module documentation of Getopt::Std, which says: To allow programs to process arguments that look like switches, but aren't, both functions will stop processing switches when they see the argument --. The -- will be removed from @ARGV.edits:
In Section
Seekers of Perl Wisdom
|
|