in reply to Re: how to skip certain lines and check for blank ones?
in thread how to skip certain lines and check for blank ones?

$line =~ /^$/ and die "Blank line detected at $.\n";

Because people have differing opinions about what a blank line is, I'd probably replace that line with:

$line =~ /\S/ or die "Blank line detected at $.\n";
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg