in reply to perl
Assuming by 'empty' you mean 'containing only space characters':
open FILE, "file.txt"; my $count; while (<FILE>) { $count++ unless /\S+/; } close FILE; print $count;
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: perl
by the_slycer (Chaplain) on Nov 10, 2000 at 08:36 UTC | |
RE: Re: perl
by Fastolfe (Vicar) on Nov 10, 2000 at 00:43 UTC |
In Section
Seekers of Perl Wisdom