in reply to Multiple strings in a file

Only a note: seems weird the way you open files:
open my $text, "<$textFile>" or die "Dead";
should be:
open my $text, '<', $textFile or die "Dead because: $!";
Id est the 3 args form of open. You can find more info in the docs for open.

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.