Welcome to the Monastery | |
PerlMonks |
Re^3: "uninitialized value in subroutine exit" warning from CGI.pm (updated)by haukex (Archbishop) |
on Nov 10, 2017 at 15:45 UTC ( [id://1203125]=note: print w/replies, xml ) | Need Help?? |
On subroutine return, any return values are copied. [emphasis mine] D'oh! Thank you for the enlightenment on a Friday afternoon ;-) Update: Yep:
And just like above, on Perls <5.16 that dies with "Modification of a read-only value attempted at - line 1." (instead of line 3). So I should probably call the commit I referenced a bugfix! :-) Additional updates: Expanded the code example from the original version and added (and edited) the last paragraph.
In Section
Seekers of Perl Wisdom
|
|