Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Method Calls on multiple objects

by adrianh (Chancellor)
on Mar 27, 2004 at 16:52 UTC ( [id://340277]=note: print w/replies, xml ) Need Help??


in reply to Method Calls on multiple objects

So how would you do it? Keeping in mind that you want it to be re-useable and as user friendly as possible.

One of my favourite answers (right up there with "yes and no") - it depends ;-)

If there is a natural aggregate object then that's the appropriate place for the behaviour to sit. If there isn't a natural aggregate object then I'd just use for directly.

Having a special object or subroutine just to encapsulate a normal perl idiom would seem overkill, unless it would naturally form part of your object model.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found