in reply to Space in getopt option value
myhack.pl --foo bar1 --foo bar2 --foo bar3 [download]
Be sure to change GetOptions ("foo=s" => \$foo); to GetOptions ("foo=s" => \@foo);
see: Options with multiple values