Sorry - you don't even need "plain eval". Just assigning the anonymous subroutine to the glob is all that's needed and creates a named subroutine from the anonymous subroutine.
In reply to Re^3: Perl templating/macro creating using 'BEGIN'...
by Corion
in thread Perl templating/macro creating using 'BEGIN'...
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |