Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re^4: What training do YOU need?

by demerphq (Chancellor)
on Oct 22, 2002 at 13:47 UTC ( #207072=note: print w/ replies, xml ) Need Help??


in reply to Re^4: What training do YOU need?
in thread What training do YOU need?

ive needed the construct

For the record I didn't mean for (;;) but rather the while () {} continue {} construct which once or twice ive found has come in useful. For instance

while (<$fh>) { s/foo/bar/ and next; s/yada/yada/ and next; #lots more of the same } continue { print $_; }
Which _can_ be written without the continue, but when the innerds get a bit complex the continue can result in simpler code. (Sorry, but I had to make it clear ive never written a perl script with for (;;) in it ;-)

Actually, scratch that, I'd be cheering.

No disagreement there... It was that construct that seriously put me off of C when I first encountered it. In fact I still haven't quite got over the trauma of having to use it. :-)

Now, the question is will Perl 6 have the obscene construct in it? My guess is probably... *sigh*

--- demerphq
my friends call me, usually because I'm late....


Comment on Re: Re^4: What training do YOU need?
Select or Download Code
Re^6: What training do YOU need?
by Aristotle (Chancellor) on Oct 22, 2002 at 15:30 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-07-07 09:26 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 (88 votes), past polls