Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by SuicideJunkie (Vicar)
on Sep 11, 2018 at 17:39 UTC ( #1222147=note: print w/replies, xml ) Need Help??


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

Here's one case where it won't be zero (undef instead), but it isn't very useful.
>perl -e "use warnings; my @nums = (); my $prod; $prod *= $_ for @nums +; print $prod" Use of uninitialized value $prod in print at -e line 1.
  • Comment on Re^2: Some "combined assignment operators" are exempt from "uninitialized value" warning. Is it documented anywhere?
  • Download Code

Log In?
Username:
Password:

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

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









    Results (101 votes). Check out past polls.

    Notices?