lancer has asked for the wisdom of the Perl Monks concerning the following question:
Outputs this: O'REILLYsub sql_escape { my $text = shift; $text =~ s/'/\'/g; $text =~ s/"/\"/g; $text =~ s/\\/\\\\/g; return $text; }
sub sql_escape { my $text = shift; $text =~ s/'/\\'/g; $text =~ s/"/\\"/g; $text =~ s/\\/\\\\/g; return $text; }
|
|---|