$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";
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^2: how to skip certain lines and check for blank ones?
by davorg
in thread how to skip certain lines and check for blank ones?
by sanjay nayak
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |