Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 .. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://546844]
help
Chatterbox?
[Corion]: Hah. I just had this idea for another EMACS backronym, but I still need to make it happen. "Eight Machines And Constantly Synching" - I envision a NodeJS+Kybernetes based infrastructure communicating between the syntax highlighter machine, the ...
[Corion]: ... screen render machine, the file store machine and five more (maybe for redundancy?), just to write print "Hello World"; ;)
[Corion]: Ah, maybe one machine could be the compiler host, which constantly compiles the Elisp to Javascript to serve to all the other machines running it...
[QM]: "Eight"? Eighty!

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2018-04-26 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?