Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
What rather surprises me is the order of errors.¹
In the first call Perl accepts passing an yet undefined hash value for the key "not_existing". E.g. you may want to populate it in foo!² In the second call it warns about an undefined key. Keys are strings not undef which must be mapped to "". Different things.
Cheers Rolf ( addicted to the Perl Programming Language)
update¹) ah ok, now that I can test it's obvious why! Both warnings are for the second call. The first doesn't cause warnings. ²) demonstration of a legal use case
In reply to Re: Inconsistency of 'Use of uninitialized value in scalar assignment' warning
by LanX
|
|