Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Thx, St. Larry, for the Beauty of Sigils

by LanX (Saint)
on Jul 30, 2019 at 16:01 UTC ( [id://11103627]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Thx, St. Larry, for the Beauty of Sigils
in thread Thx, St. Larry, for the Beauty of Sigils

> 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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11103627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found