in reply to Configurable Matches

Yes, it is possible. You are looking for qr in perlop (under Regexp Quote-Like Characters).

#!/usr/bin/perl use strict; use warnings; my $text = 'Mary had a little lamb.'; # get your text from wherever my $regex = 'it'; # get your regex info from where +ver my $reg = qr/$regex/; # compile it print $regex if $text =~ $reg; # check for a match

Replies are listed 'Best First'.
Re^2: Configurable Matches
by jdhawke (Acolyte) on Jun 03, 2004 at 04:35 UTC
    Thanks alot, this seems to be exactly what I am looking for.