Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Interpretting character combinations as special characters.

by vitoco (Friar)
on Dec 11, 2009 at 18:27 UTC ( #812417=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $text = 'h\te\nl\l\t\(o\)\n';
    print "$text\n";
    %token = ('\n'=>"\n", '\t'=>"\t" , '\('=>'(', '\)'=>')');
    $text =~ s/(\\.)/$token{$1}||$1/ges;
    print "$text\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://812417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-06-26 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.