i'm trying to invoke a subroutine on the occurrence of certain option, say something like this
GetOptions( 'test=s{3}' => \&sub1 ); sub sub1 { print @_ }
running the script with
prog --test a b c
would yield a result like this
test a
test b
test c
as if the sub was called 3 times, each with 1 of the 3 values passed in, how do i make it so that all 3 values of the option are passed to @_ once with one invocation of the subroutine?
In reply to Getopt::Long subroutine question by brassbin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |