Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Often Overlooked OO Programming Guidelines

by Ovid (Cardinal)
on Dec 29, 2003 at 21:05 UTC ( #317551=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      package Foo;
                                                                          
    +                                                                     
    +                 
      sub new {
    ...
          my ($self, @args) = @_;
          return map { ++$_ } @args;
      }
    
  2. or download this
      # in package Foo
      sub wonk {
          my $self = shift;
          _fiddle($self, @_);
      }
    
  3. or download this
                                                                          
    +                                                             
      package Bar;
      use Foo;
    ...
          my $self = shift;
          $self->{_foo}->wonk(@_); # delegation!
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://317551]
help
Chatterbox?
[Corion]: marto: That post is a repost/duplicate of Excel sheet data write issue :-D
[Corion]: Whoops - Merging worksheets in .xls in one Excel sheet
[marto]: Corion, whoops, can the moderation me amended?
[Corion]: marto: We could vote, unconsider and reconsider ;)
[Corion]: "vote keep", I meant ;)
[Corion]: marto: But that aside, I hope you are well!
Corion is slowly acclimatizing to working only four days a week
[marto]: the back pain is still there, it's been a rough week, trying to do building work with a bad back
[Corion]: marto: Ow! That doesn't sound good :-/ The work won't help your back...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-09-21 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (248 votes). Check out past polls.

    Notices?