in reply to Re: generic getopt to hash
in thread generic getopt to hash
I've tweaked one line though:
$opthash{$lastopt}=[] unless ref $opthash{$lastopt};
So that it can handle both types of lists:
script.pl --list aa --list bb and script.pl --list aa bb
cheers
|
|---|