Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2018-02-24 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (310 votes). Check out past polls.

    Notices?