in reply to Re: Dereferencing in blessed object
in thread Dereferencing in blessed object
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/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Dereferencing in blessed object
by hippo (Archbishop) on Feb 27, 2021 at 22:44 UTC | |
by choroba (Cardinal) on Feb 28, 2021 at 22:14 UTC | |
by Bod (Parson) on Feb 27, 2021 at 22:51 UTC | |
by hippo (Archbishop) on Feb 28, 2021 at 10:45 UTC | |
by Bod (Parson) on Feb 28, 2021 at 11:46 UTC | |
|
Re^3: Dereferencing in blessed object
by haukex (Archbishop) on Feb 28, 2021 at 07:36 UTC |