Howdy list, 

I am tryign to figure the best way to put a regex in a string:

my $regxp = '\w+(\.\d+)?\*\w+';
or
my $regxp = qr(\w+(\.\d+)?\*\w+);

 if($foo !~ m/^$regxp$/) { die "you badly formatted thing you"; }

Both ways seem to work the same it's just that qr changes $regxp to:
(?-xism:\w+(\.\d+)?\*\w+)

I'm not familiar with what that is doing? Is the 'i' saying case insensitive
And the 'm' saying multiple lines/match, 'x' extended regular expressions 
and the 's' substitute/single line?
Or ???

What are the advantages/disadvantages of either?

Thanks!

Dan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to