Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: "uninitialized value in subroutine exit" warning from CGI.pm

by dave_the_m (Prior)
on Nov 10, 2017 at 09:44 UTC ( #1203106=note: print w/replies, xml ) Need Help??


in reply to Re: "uninitialized value in subroutine exit" warning from CGI.pm
in thread "uninitialized value in subroutine exit" warning from CGI.pm

No idea on WHY the behaviour is different. I'm sure monks with more (perl) guts will come forth.
Args to subs are treated as lvalues (sort of) because they can be modified within the sub, e.g.
sub f { $_[0] = "abc" } $s = "1234"; f(substr($s, 0, 1)); # $s is now abc234

Dave.

  • Comment on Re^2: "uninitialized value in subroutine exit" warning from CGI.pm
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1203106]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-05-21 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?