Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$count=0; $file = "bas.txt"; open(FILE, "<$file"); $count++ while <FILE>; print "$count\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Number of lines and characters
by CubicSpline (Friar) on Aug 28, 2002 at 15:19 UTC | |
|
Re: Number of lines and characters
by krujos (Curate) on Aug 28, 2002 at 14:27 UTC | |
|
Re: Number of lines and characters
by VSarkiss (Monsignor) on Aug 28, 2002 at 19:39 UTC | |
|
Re: Number of lines and characters
by Anonymous Monk on Aug 28, 2002 at 14:12 UTC |