Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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...
and... 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. In reply to Perl & Regex by Kzin
|
|