Do you know where your variables are? | |
PerlMonks |
Re^2: List arguments of a methodby tobyink (Canon) |
on May 15, 2014 at 09:27 UTC ( [id://1086123]=note: print w/replies, xml ) | Need Help?? |
FYI, the Kavorka signature syntax and introspection API shown in my answer is very much inspired by Perl 6. Your example:
... translates to:
My policy was generally, "if in doubt, do things like Perl 6". I do really need to experiment with blessing coderefs, allowing things like: (\&f)->signature to "just work".
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|