in reply to Regex problem
open my $fh => "linecount.txt" or die "Open linecount.txt: $!"; my ($file, $linecount); while (<$fh>) { ($file, $linecount) = split /\s*~\s*/; last if $file && $file eq $thefileIamLookingfor; }
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex problem
by DS (Acolyte) on Jul 16, 2002 at 13:28 UTC |