Help for this page

Select Code to Download


  1. or download this
    use 5.010;
    
  2. or download this
    use feature 'switch';
    
  3. or download this
    no if $] >= 5.018, warnings => "experimental::feature_name";
    
  4. or download this
    no if $] >= 5.018, warnings => "experimental::switch";
    
  5. or download this
    Unknown warnings category 'experimental::switch' at ...
    BEGIN failed--compilation aborted at ...
    
  6. or download this
    no if $] >= 5.018, warnings => "experimental::smartmatch";
    
  7. or download this
    given is experimental at ...
    when is experimental at ...
    when is experimental at ...
    when is experimental at ...
    
  8. or download this
    #!/usr/bin/env perl -l
    
    ...
        state $word_for = {qw{1 One 2 Two 3 Three}};
        return $word_for->{+shift} || 'Other';
    }
    
  9. or download this
    *** test1() ***
    0 is Other
    ...
    2 is Two
    3 is Three
    4 is Other