Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Loops, the scalar range operator, and objects

by dragonchild (Archbishop)
on Jan 02, 2002 at 19:06 UTC ( #135680=note: print w/ replies, xml ) Need Help??


in reply to Loops, the scalar range operator, and objects

Very very nice! I only wish I could ++ more than once.

I also very much like the use of an object to handle everything. And, if you use this as a Facade, then you get all sorts of reusability. To extend your idea just a little...

  • Loop_control would be composed of:
    • An error-handling object
    • The object you're working on (like a network socket)
    • The Strategy object you want to apply
All Loop_control would do would be the client. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.


Comment on Re: Loops, the scalar range operator, and objects

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-07-30 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls