our $text =~ s/$data[0]/$data[2]/g;You should note that $data[0] is interpreted as a regular expression, which is probably not what you want. This common error is often the cause of vulnerabilities. See "DON'T" in perlcheat and "\Q" in perlre.
In reply to Re: Use of a global scalar
by betterworld
in thread Use of a global scalar
by Grey Fox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |