in reply to need a clearer understanding

chomp $line; if(not($line eq "")) { ##### why does $line equal "" ?
$line can be empty after chomp. So the code between the if() doesn't get executed if line is empty.

Replies are listed 'Best First'.
Re^2: need a clearer understanding
by Anonymous Monk on Aug 09, 2011 at 20:27 UTC

    > So the code between the if() doesn't get executed if line is empty.

    I'd probably rewrite it this way to kill one indent level:

    next if $line eq "";