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

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

by Eily (Prior)
on Sep 11, 2018 at 15:16 UTC ( #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
Node Status?
node history
Node Type: note [id://1222130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2019-02-19 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (105 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!