Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Using caller to determine the namespace of an anonymous subroutine

by chromatic (Archbishop)
on Feb 23, 2006 at 22:35 UTC ( [id://532409]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    *{$caller."::".$field} = sub
    {
        local *__ANON__ = "${caller}::${field}";
    ...
        return $self->STORE( $field, @_ ) if @_;
        return $self->FETCH( $field );
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found