good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^8: Function name in a variable, can't recall the concept (introspection with ->can )by Veltro (Hermit) |
on Apr 19, 2019 at 13:51 UTC ( [id://1232803]=note: print w/replies, xml ) | Need Help?? |
He probably means something hypothetical... I was actually thinking about this seriously, and I would likely do something as:
Maybe it can be written more pretty, and I don't know if any odd-cases are trapped (e.g. what about __ANON__) edit: Comes to think of it, maybe the line 'exists' is not even needed?
In Section
Seekers of Perl Wisdom
|
|