Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 wandering the Monastery: (4)
As of 2019-10-15 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?