in reply to Matching problem
open (FILE, "<file.html") || die "couldn't open file: $!\n"; my @data = <FILE>; my $file = join /\n/, @data; if ($file =~ m{$searchword}g) { #do something }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching problem
by graff (Chancellor) on Jul 09, 2004 at 01:55 UTC |