Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by dave_the_m (Monsignor)
on Nov 10, 2017 at 09:44 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1203106]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found