Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: OT: Design question

by uwevoelker (Pilgrim)
on Oct 02, 2004 at 14:22 UTC ( #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? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-05-29 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?