Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: OO-style modifiers for 'sub' ?

by Aristotle (Chancellor)
on Jan 24, 2003 at 23:59 UTC ( #229755=note: print w/ replies, xml ) Need Help??


in reply to Re: OO-style modifiers for 'sub' ?
in thread OO-style modifiers for 'sub' ?

sub foo # requires interfaces IntA, IntB { my ($self) = @_; IntA::validate($self); IntB::validate($self); }
Excellent! I am impressed - a very simple, concise and - as far as I can tell - robustly versatile approach. Seems to be the perfect distribution of responsibilities. It certainly deserves attention - if it doesn't get much here, please repost it as a root node. I'm very curious to hear the gurus with theoretical background poke at this and comment on it.

Makeshifts last the longest.


Comment on Re^2: OO-style modifiers for 'sub' ?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-09-18 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (116 votes), past polls