in reply to Re^2: Getting selected options from GetOptions()
in thread Getting selected options from GetOptions()

Using runrig's example:

my %opts; GetOptions(map { ($_ => \$opts{$_}) } "a".."z"); my @selected = grep { $opts{$_} } keys %opts;