Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: ||= (poorly documented?)

by tobyink (Canon)
on Jul 09, 2012 at 06:54 UTC ( [id://980663]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $foo X= $bar;
    # is short for:
    $foo = $foo X $bar;
    
  2. or download this
    $foo += $bar;
    # is short for:
    ...
    $foo *= $bar;
    # is short for:
    $foo = $foo * $bar;
    
  3. or download this
    $OUTFH{$name} = $OUTFH{$name} || IO::File->new(">g:\\perl_scripts\\$na
    +me.log");
    $FH           = $OUTFH{$name} or die $!;
    
  4. or download this
    my $result = $cache{$input} ||= my_function($input);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found