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.
In reply to Re: Multiple strings in a file
by LanX
in thread Multiple strings in a file
by The_Last_Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |