On 4/10/06, Bryan R Harris <[EMAIL PROTECTED]> wrote:

> I need to discard the first 9 lines of input before I get to the data I'm
> interested in...
>
> I'm using:
>
>   for (1..9) { <>; }
>
> ... but that feels a little wordy.

You're right: That superfluous punctuation makes it look like the
supermodel who ate a second grape.

   <> for 1..9;    # discard nine lines of input

Unless you're writing Perl poetry, playing Perl golf, or paying extra
for each byte of source code, I recommend that you write code in the
most straghtforward style possible. It may sometimes seem to be a few
more keystrokes at the start, but you'll spend far less time reading,
writing, debugging, and maintaining your code in the long run.

Cheers!

--Tom Phoenix
Stonehenge 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