Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: moving the filehandle to anyline of a file

by Tanalis (Curate)
on May 02, 2006 at 08:58 UTC ( #546844=note: print w/ replies, xml ) Need Help??


in reply to Re: moving the filehandle to anyline of a file
in thread moving the filehandle to anyline of a file

Or simply, if we're refactoring,

while ( <FH> ) { next unless /^Confname/; ... }
I've always found unless clearer than a negated if for short single-condition conditionals like that. I do accept that that's personal preference, though .. :)


Comment on Re^2: moving the filehandle to anyline of a file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-05 17:41 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 (67 votes), past polls