Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Given When Syntax

by kcott (Archbishop)
on Mar 16, 2014 at 00:19 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1078496]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-03-29 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found