blackwolfsystems
asked on
stripslashes in perl
In Perl, how can I perform the same action that stripslashes does in php?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks. I must have missed the global option...
s/\\([\\'"])/$1/g
ASKER
But that doesn't quite work, you have to do:
s/\\'/'/g;
s/\\"/"/g;
s/\\\\/\\/g;
instead as otherwise it only changes the first occurance.
Thanks for the help