in reply to Named anonymous subs
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.
|
---|