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

Re^3: OT: Design question

by uwevoelker (Pilgrim)
on Oct 02, 2004 at 14:22 UTC ( [id://395888]=note: print w/replies, xml ) Need Help??


in reply to Re^2: OT: Design question
in thread OT: Design question

> For example, the Handler::GreenWidget emails to
> green2341@place.com and Handler::BlueWidget emails to
> blue238882@place.com. And, so on for 80 colors.
If you write a base class Handler::Email and within Handler::GreenWidget you do:
use base 'Handler::Email'; sub email { 'green2341@place.com' }
And in Handler::Email you do:
sub handle { my $email = $self->email; # send email # ... }
I think you get the point.
So you don't have to duplicate similar code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found