in reply to Re: generic getopt to hash
in thread generic getopt to hash

That's what I was looking for. Thanks.

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