Thanks haukex - that's extremely helpful.
or, in the worst case, you're not using strict.
The main script has use strict; but it seems that does then apply to the module it calls...I know that now!
So now I've added use strict; I get a whole bunch of Global symbol requires explicit package name errors even though they all have my or our declarations. I tracked this down to the declaration happening later in the module than methods that are throwing the error.
It also highlighted another error with this:
The variable $dbname is declared but in the regexp it is looking for $dbname_. I have solved this for now with:$db =~ s/_.+?_/_$dbname_/;
But - I feel sure there is a more elegant way!my $temp = "_$dbname"."_"; $db =~ s/_.+?_/$temp/;
In reply to Re^2: Dereferencing in blessed object
by Bod
in thread Dereferencing in blessed object
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |