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

Re^2: Interpretting character combinations as special characters.

by JavaFan (Canon)
on Dec 10, 2009 at 13:32 UTC ( [id://812182]=note: print w/replies, xml ) Need Help??


in reply to Re: Interpretting character combinations as special characters.
in thread Interpretting character combinations as special characters.

Listing only those mappings that are different from taking off the leading backslash:
my %mapping = (n => "\n", t => "\t"); $str =~ s{\\(.)}{$mapping{$1}//$1}seg;
This still gives fine control, but you don't have to list everything.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found