Help for this page

Select Code to Download


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