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 reply to Re: GetOpt ignore required arguments
by linuxer
in thread GetOpt ignore required arguments
by stevensw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |