|
|
| No such thing as a small change | |
| PerlMonks |
Re: 'local' for imported variables doesn't work as expected (updates 1)by LanX (Saint) |
| on Oct 04, 2024 at 11:13 UTC ( [id://11162052]=note: print w/replies, xml ) | Need Help?? |
|
TIMTOWTDI instead of exporting the variable you can just check it directly in the caller's namespace. (If it even exists )
This might give your debugging interesting options...
UpdateAn alternative to messing with strict refs is to explicitly dig thru the stashes... say ${$::{"${pkg}::"}{"var"}}; ... Tho beauty is in the eye of the beholder ;)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||