Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222147]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found