in reply to Re^4: Help with Search String
in thread Help with Search String
The code becomes
my $outFile = q{/home/btobin/data3.txt}; open my $outFH, q{>>}, $outFile or die qq{open: $outFile: $!\n}; while ( <$dataFH> ) { print $outFH qq{Found name $_\n} if /($namesPatt)/; } close $outFH or die qq{close: $outFile: $!\n};
I hope this is helpful.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Help with Search String
by btobin0 (Acolyte) on Dec 08, 2007 at 06:48 UTC | |
|
Re^6: Help with Search String
by btobin0 (Acolyte) on Dec 08, 2007 at 09:29 UTC | |
by johngg (Canon) on Dec 08, 2007 at 12:09 UTC |