in reply to Naughty match variables in CPAN?
while (<DATA>){ while ($_ =~/(^|\W)CPAN(\W)/gi){ print substr($`,length($`)-10) . $& . substr($',0,10) . "\n"; } } __DATA__ To my great surprise, when I traced it out I found two CPAN modules (s +o far) that we use are also tainted in this way: Printer and Math::Ma +trixReal. I have sent mail to the maintainers of these modules point +ing out the issue. It makes me wonder how many other CPAN modules ar +e tainted with "naughty match variables".
ZAZ@localhost ~ $ perl sample.pl found two CPAN modules many other CPAN modules arStandard untested code caveat...
|
|---|