Help for this page
while (<FILE>) { ... chomp; process_stuff( $_ ); }
while (<FILE>) { chomp if /\S/; process_stuff( $_ ); }
Yours: $line =~ /^$/ or chomp ( $line ); Mine: chomp $line if $line =~ /\S/;