in reply to unescape a user-entered string?

I might be missing something?
If it's just about printing, Perl's print will DWYM as long as the string is inside double quotes "..." or qq(...)

Cheers, Sören

Replies are listed 'Best First'.
Re: Re: unescape a user-entered string?
by zovirl (Initiate) on May 30, 2004 at 18:37 UTC
    (I'm the original poster, BTW...forgot to log in) The string is inside a variable, having been read from the user:
    $string = <>; print $string;
    So quotes don't help