Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to de-reference a coderef?by duff (Parson) |
on Dec 09, 2004 at 14:55 UTC ( [id://413557]=note: print w/replies, xml ) | Need Help?? |
You typically don't need the name of the subroutine. The subroutine may not even have a name if it's anonymous. If you have the reference, just use $code_ref->(@args) to execute it or &{$code_ref}(@args).
In Section
Seekers of Perl Wisdom
|
|