No such thing as a small change | |
PerlMonks |
Re: Thx, St. Larry, for the Beauty of Sigilsby LanX (Saint) |
on Jul 26, 2019 at 19:55 UTC ( [id://11103477]=note: print w/replies, xml ) | Need Help?? |
Just to be sure I understand the problem. because a variable is a bareword you can't just type ?
In JS you could solve this with a bracket syntax to look up an attribute obj[meth]() Console demo:
But in python you need a function getattr() ?
Cheers Rolf
In Section
Meditations
|
|