in reply to Regex from a variable...

Close, you want to define $regex using the qr perlop operator, as in:
$regex = qr/ISOLATION/;
You can then check for a match via what you have there.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: Regex from a variable...
by Anonymous Monk on Jun 16, 2001 at 00:02 UTC
    It works.... Exactly what I was looking for... Thanks for the response... You guys / gals are super fast!