I imagine it should run about the same speed wise, but shouldn't require quite so much memory...use strict; my $filename = "foo.txt"; my $count; open FILE, $filename or die "could not open $filename"; while(<FILE>) { $count++; } # while close FILE; print $count;
In reply to Re: Re: path is broken
by gaspodethewonderdog
in thread path is broken
by ashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |