Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 wandering the Monastery: (12)
As of 2014-11-20 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (102 votes), past polls