Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2018-04-20 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?