Link to home
Start Free TrialLog in
Avatar of blackwolfsystems
blackwolfsystems

asked on

stripslashes in perl

In Perl, how can I perform the same action that stripslashes does in php?
ASKER CERTIFIED SOLUTION
Avatar of smisk
smisk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of blackwolfsystems
blackwolfsystems

ASKER

Thanks I kind of guessed it would end up like that.

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
Thanks.  I must have missed the global option...
Avatar of ozo
s/\\([\\'"])/$1/g