Perrin,
Thanks - as soon as I read what you said, I looked at the code and saw I
instantiated a CGI object at the top of the script, package-scoped so I
wouldn't have to pass it between subroutines. I thought I would test
this intuition by instantiating in the method that needed it, and pass
Patrick Galbraith wrote:
[...]
Hi.
Less nice, less neat, less classic, terrible style, whatever you want,
but which also works :
# my nifty cgi-bin
use strict;
use warnings;
{
package MyOwn;
no strict;
$CGI = '';
}
sub sub1 {
$MyOwn::CGI = new CGI();
}
sub sub2 {
my $name =