in reply to Multiple strings in a file
I'm not sure which question you are asking, but think you are looking for the flip-flop operator
try
open my $text, "<", $textFile>" or die "Dead"; while(<$text>){ if(/$firstString/ .. /$secondString/){ print $_; } }
otherwise please show desired input and output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiple strings in a file
by The_Last_Monk (Novice) on Feb 10, 2015 at 17:55 UTC | |
by LanX (Saint) on Feb 10, 2015 at 17:59 UTC | |
by The_Last_Monk (Novice) on Feb 10, 2015 at 18:05 UTC | |
by vinoth.ree (Monsignor) on Feb 10, 2015 at 18:34 UTC | |
by The_Last_Monk (Novice) on Feb 10, 2015 at 18:37 UTC |