http://qs321.pair.com?node_id=389503

Kzin has asked for the wisdom of the Perl Monks concerning the following question:

Hey there all you Perl Monks, I am new to the fold so please go easy on me ;-) My question is with regards to perl and regex... I seem to get different results with the line...
if( /Price: \$([0-9]+\.[0-9]+)/ )
and...
$searchString = 'Price: \$([0-9]+\.[0-9]+)'; ... if ( /$searchString/ )
What is it doing?
Well it is supposed to parse my website for changes, so that if anyone does change I am notified. It seems to work fine when the actual regex is in the if itself, but it wont match when I have it assigned to the variable.
So what is my question?
Is this normal behavior? Should the fact that the regex string is contained in a variable change the final outcome of what matches and what doesn't?
P.S the content of a grabbed webpage is assigned to $_ before the if happens.