>>>>> ""Jay" == "Jay Savage" <[EMAIL PROTECTED]> writes:

>> There.  Happy?  No more tests.  And now you'll complain about the
>> subroutine call. :)

"Jay> Just to muddy the waters a little more (and hopefully answer a
"Jay> question I've had for a while): how does the "flip-flop" operator
"Jay> function here:

"Jay>     while (<>) {
"Jay>         next if 1..9;
"Jay>         # the rest of the code
"Jay>     }

"Jay> Is '1..9' just shorthand for '$. <= 9'? Or does the flip-flop become a
"Jay> no-op once it flips?

"Jay> (I honestly has had no idea that was going to turn into bad perl
"Jay> poetry when I wrote it. Sorry.)

That's still a "test", violating the notion that you'll be testing
that test for the million lines after the first nine lines.

And yes, that notion is pointless, as I tried to suggest. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to