Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Converting HoA into AoH

by robin (Chaplain)
on Oct 31, 2005 at 17:40 UTC ( #504371=note: print w/ replies, xml ) Need Help??


in reply to Re: Converting HoA into AoH
in thread Converting HoA into AoH

Using glob is a delightful trick, but in general you really need to escape the string much more than this. (To see what I mean, try putting a * in one of the strings.)

Instead of s/ /\\ /g, use s/(\W)/\\\\\\$1/g. I know itís a lot of backslashes, but you really do need that many here!


Comment on Re^2: Converting HoA into AoH

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-30 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls