Do you know where your variables are? | |
PerlMonks |
Re^5: Thx, St. Larry, for the Beauty of Sigilsby LanX (Saint) |
on Jul 30, 2019 at 16:01 UTC ( [id://11103627]=note: print w/replies, xml ) | Need Help?? |
> I suppose that by "check the type" you mean try to use the value and hopefully catch the error if it didn't work :P Python doesn't have separated namespaces for scalar, array, hash or function attributes for classes. Perl does have separated slots in a package STASH. So ->can() will only return valid coderefs. I suppose getattr() returns on them all.
Cheers Rolf
In Section
Meditations
|
|