in reply to sendmail logging combine two hashes

next unless $lin !~ /^\s*$/ ;

I wonder why you are using a sort-of coding double negative here. Wouldn't

next if $lin =~ /^\s*$/;

be easier for human readers to parse? Just curious as to your thinking :-s

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^2: sendmail logging combine two hashes
by chanslor (Acolyte) on Feb 18, 2015 at 14:24 UTC
    Hello, Thanks for speaking out! I'm eager to learn and listening! So my thought should be - next if the line is blank! Thanks, I'm working to become a better perl scripter! :)
    #next unless $lin !~ /^\s*$/ ; # Gets rid of blank lines next if $lin =~ /^\s*$/ ; # Gets rid of blank lines, Thanks JohnGG@pe +rlmonks