myhack.pl --foo bar1 --foo bar2 --foo bar3
Be sure to change GetOptions ("foo=s" => \$foo); to GetOptions ("foo=s" => \@foo);
see: Options with multiple values
In reply to Re: Space in getopt option value
by frozenwithjoy
in thread Space in getopt option value
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |