Perl & Regexby Kzin (Acolyte)
|on Sep 08, 2004 at 22:33 UTC||Need Help??|
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...
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.