Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re (tilly) 1: Class::Flyweight - implement the flyweight pattern in OO perl

by tilly (Archbishop)
on Jul 09, 2001 at 07:27 UTC ( #94904=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      package MyPackage;
    
    ...
        my $self = $flyweight->access(shift);
        return $self->{name};
      }
    
  2. or download this
    
      package MyPackage;
    ...
        my $self = $instance{shift(@_)};
        return $self->{name};
      }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2023-03-31 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (77 votes). Check out past polls.

    Notices?