Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Undoable Objects

by chromatic (Archbishop)
on Aug 26, 2000 at 21:12 UTC ( #29813=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
        bless($self, $class);
        return $self;
    }
    
  2. or download this
    {
        my %history;
    
    ...
            $self->{$attrib} = $value;
        }
    }
    
  3. or download this
    sub color {
        my $self = shift;
        if (@_) {
    ...
    }
    
    1;
    
  4. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
        $hist2->undo();
        print $hist2->all(), "\n\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2014-09-17 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (58 votes), past polls