Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Assignable Subroutines

by BrentDax (Hermit)
on Jan 26, 2005 at 01:38 UTC ( [id://425096]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Lvalue::GetSet;
    
    use Exporter;
    ...
    sub STORE {
        $_[0]->{set}->($_[1]);
    }
    
  2. or download this
    sub name {
        my $me=shift;
        get {
    ...
           $me->{name} = $1;
        }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found