Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Inconsistency of 'Use of uninitialized value in scalar assignment' warning (old discussion)

by LanX (Saint)
on Dec 27, 2013 at 01:17 UTC ( [id://1068463]=note: print w/replies, xml ) Need Help??


in reply to Inconsistency of 'Use of uninitialized value in scalar assignment' warning

Now that I understand your concern, I remembered that we discussed it before...

see Unexpected warning

Actually I don't see the practical problem to get two instead of just one warning.

And if you planed to switch off the first warning, I can't find a way the second wouldn't be automatically suppressed too.

DB<143> use warnings; no warnings 'uninitialized'; $h{+undef} => undef DB<144> sub tst { my $x=$_[0] } DB<145> use warnings; no warnings 'uninitialized'; tst $h{+undef} => undef DB<146> use warnings; tst $h{+undef} Use of uninitialized value in hash element at (eval 108)[multi_perl5db +.pl:644] line 2.

So what's the problem?

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: Inconsistency of 'Use of uninitialized value in scalar assignment' warning (old discussion)
  • Download Code

Log In?
Username:
Password:

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

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

    No recent polls found