Hello,

I have a script the loads regex into variables from a user config file, how ever I am unable to get perl to run the regex against the string.

As I test have tried:

my $exp_test="m/^\d+$/";
if ( (defined $string) && ($string =~ $exp_test ) ) {
   print $string, "\n";
}

I have tried many other variants but can't seem to get it to work. Please help :)

Michael


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to