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....


In reply to Re: Re^4: What training do YOU need? by demerphq
in thread What training do YOU need? by deprecated

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.