Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Garbage collected class attributes with inside out classes.

by kyle (Abbot)
on Mar 01, 2007 at 16:04 UTC ( [id://602707]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Class::Std;
    
    ...
        my $self = shift;
        @{$example_array_of{ident $self}} = @_;
    }
    
  2. or download this
    use Class::Std;
    
    ...
    
    sub get_example_array { return @example_array; }
    sub set_example_array { shift; @example_array = @_; }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found