Help for this page

Select Code to Download


  1. or download this
    my %feature = (
        switch => 'feature_switch',
        say    => "feature_say",
        state  => "feature_state",
    );
    
  2. or download this
    Feature "~~" is not supported by Perl 5.10.0 at ...
    
  3. or download this
    use feature qw / say /;
    @a = (1, 17, 4);
    say "first match succeeds" if (@a ~~ 17);
    say "second match fails" unless ((1, 17, 4) ~~ 17);
    
  4. or download this
    first match succeeds
    second match fails