- or download this
my %state;
@state{1..9}=();
- or download this
$state{$name} = undef;
- or download this
@state{@names} = (1) x @names;
- or download this
my $count = grep {$_} values %state;
- or download this
my $setname = (grep {$state{$_}} keys %state)[0];
- or download this
my @setnames = grep {$state{$_}} keys %state;
- or download this
# same as ordinary perl
print $foo if $state{$one} && $state{$tother};