Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Generic/Variable/Dynamic Subroutines? (Not a redefine)by shmem (Chancellor) |
on Aug 18, 2017 at 19:28 UTC ( [id://1197628]=note: print w/replies, xml ) | Need Help?? |
Just pass the method into the sub:
If you want to call the methods by their name without them being defined, there is AUTOLOAD:
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|