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

Re^3: Sequential defined-or operators

by ikegami (Pope)
on Jan 14, 2008 at 12:18 UTC ( #662281=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $value =  $hash{$arg}
              // func $arg
              // 'default';
    
  2. or download this
    my $value =  $hash{$arg}
              // func($arg // 'default');
    
  3. or download this
    my $value =  $hash{$arg}
              // (func $arg)
              // 'default';
    
  4. or download this
    my $value =  $hash{$arg}
              // func($arg)
              // 'default';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2014-12-18 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (67 votes), past polls