Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Given When Syntax

by kcott (Bishop)
on Mar 16, 2014 at 00:19 UTC ( #1078496=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1078496]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2019-10-15 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?