Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 exploiting the Monastery: (5)
As of 2014-12-28 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls