Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Named anonymous subs

by Julian Mehnle (Initiate)
on Mar 08, 2006 at 02:35 UTC ( [id://535090]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl <<EOF
    package Foo::Bar;
    print sub { local *__ANON__ = "boo"; (caller(0))[3] }->();
    ...
    print sub { local *__ANON__ = "Foo::Zip::boo"; (caller(0))[3] }->();
    EOF
    Foo::Zip::boo
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found