Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is my current code:
My check for NULL doesn't seem to work....while(<DATA>){ # Populate the data array if ($_ ne ""){ push @data, $_; } } close DATA; my $length = @data; print "LENGTH: $length\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File length ??
by Aristotle (Chancellor) on Sep 12, 2002 at 18:36 UTC | |
|
Re: File length ??
by Moonie (Friar) on Sep 12, 2002 at 18:36 UTC | |
|
Re: File length ??
by dws (Chancellor) on Sep 12, 2002 at 18:50 UTC | |
|
Re: File length ??
by charnos (Friar) on Sep 12, 2002 at 20:00 UTC | |
|
Re: File length ??
by thor (Priest) on Sep 13, 2002 at 00:06 UTC |