Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Named anonymous subs

by Ovid (Cardinal)
on Nov 05, 2003 at 22:43 UTC ( [id://304889]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304889]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2024-04-18 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found