|Just another Perl shrine|
= rather than =~ ?by bcrowell2 (Friar)
|on Jan 01, 2004 at 17:08 UTC||Need Help??|
bcrowell2 has asked for the
wisdom of the Perl Monks concerning the following question:
This web page gives the following example:
then you need to keep studying. The problem with this code is that when the match fails, $1 is left over from a previous match. This kind of code can be used as a security exploit, if the attacker can access the source code or have an idea that this is happening. It's code that ``looks right'' but definitely isn't. But isn't the use of the = sign, rather than =~, also incorrect?