in reply to "uninitialized value in subroutine exit" warning from CGI.pm
Basically, when substr(undef,..) is called as a parameter to a sub{},perl -wE 'sub x{say qq|X Called|}; x substr(undef,0,4)'
I.E. it complains when called "solo", but suppresses the warning when called as a parameter.
That's all I have.
No idea on WHY the behaviour is different. I'm sure monks with more (perl) guts will come forth.
All power corrupts, but we need electricity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "uninitialized value in subroutine exit" warning from CGI.pm
by dave_the_m (Monsignor) on Nov 10, 2017 at 09:44 UTC |