Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Some "combined assignment operators" are exempt from "uninitialized value" warning. Is it documented anywhere?

by Eily (Monsignor)
on Sep 11, 2018 at 15:16 UTC ( [id://1222130]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $value;
    while (condition) # or for loop
    {
      $value <op>= something;
    }
    
  2. or download this
    my $sum; 
    $sum += $_ for @nums;
    
  3. or download this
    my $valid;
    while (<DATA>)
    ...
      next if /INVALID/;
      $valid .= $_;
    }
    
  4. or download this
    my $product;
    $product *= $_ for @nums;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found