in reply to How can I safely unescape a string.
use 5.010; use utf8::all; my $string = q[\334ber@n\374ber.com]; $string =~ s/\\([0-7]+)/chr oct $1/eg; say $string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I safely unescape a string.
by davido (Cardinal) on Sep 12, 2012 at 20:56 UTC | |
by remiah (Hermit) on Sep 13, 2012 at 13:30 UTC |