Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re (tilly) 3: Skip 21 Lines

by tilly (Archbishop)
on Apr 25, 2001 at 05:14 UTC ( [id://75343]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Skip 21 Lines
in thread Skip 21 Lines

Isn't it more maintainable to write that as:
$line = (<FILE>)[4];
?

Replies are listed 'Best First'.
Re: Re (tilly) 3: Skip 21 Lines
by merlyn (Sage) on Apr 25, 2001 at 06:26 UTC
      Yes, that was a joke.

      But if you are going to be inefficient, at least be idiomatically inefficient. I didn't like having to count through undefs to figure out which line you were grabbing...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-18 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found