http://www.perlmonks.org?node_id=546844


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 .. :)