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