more useful options | |
PerlMonks |
Re^2: detecting an undefined variableby LanX (Saint) |
on Sep 21, 2019 at 16:28 UTC ( [id://11106501]=note: print w/replies, xml ) | Need Help?? |
I mostly agree, but > Exists refers to keys in a hash and has nothing to do with variables. this statement is problematic because Perl's namespaces - including scratchpads° - are actually implemented as hashes. for instance it's perfectly possible to check the STASH for a package variable
Cheers Rolf
°) though you'd need PadWalker to access it.
In Section
Seekers of Perl Wisdom
|
|