Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Encapsulation through stringification - a variation on flyweight objects

by adrianh (Chancellor)
on Apr 03, 2003 at 00:24 UTC ( #247643=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Persist;
    
    ...
        # mark and item as changed so it should be saved
        $self->{_change}++;
    };
    
  2. or download this
    package VendingMachine;
    use base qw(Persist);
    ...
            $self->give_change($money - $item->cost);
        };
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://247643]
help
Chatterbox?
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-02-23 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (350 votes). Check out past polls.