in reply to Re: path is broken
in thread path is broken
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re(3): path is broken
by Ovid (Cardinal) on Dec 07, 2000 at 00:15 UTC | |
by btrott (Parson) on Dec 07, 2000 at 00:20 UTC | |
by marius (Hermit) on Dec 07, 2000 at 01:02 UTC | |
by mirod (Canon) on Dec 07, 2000 at 01:11 UTC |