That's a nice thing to know. Thank you! I've been bitten by errors reported in anonymous subs and this should make life easier.
#!/usr/local/bin/perl use warnings; use strict; use Carp 'confess'; sub foo { sub { local *__ANON__ = 'local_subref'; confess "Ovid"; }; } eval foo()->();
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Named anonymous subs
by Ovid
in thread Named anonymous subs
by ysth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |