Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: XMLin question

by Anonymous Monk
on Feb 15, 2013 at 18:21 UTC ( #1018942=note: print w/ replies, xml ) Need Help??


in reply to Re^3: XMLin question
in thread XMLin question

naturally, untested, doesn't work :/


Comment on Re^4: XMLin question
Re^5: XMLin question
by bart (Canon) on Feb 15, 2013 at 22:25 UTC
    I'm not surprised. \K was added in perl 5.10 but with -e perl won't use any features that are so "recent". Try "-E" instead, at least, if you have perl 5.10 or later.

    But, I don't think it will work, anyway. /([><])([^\w])/ would fix every "</" in your XML, and that just isn't right.

      I'm not surprised. \K was added in perl 5.10 but with -e perl won't use any features that are so "recent".

      That doesn't apply to regex syntax, see feature

      Anyway, I didn't test oneliner originally, and didn't try hard to fix it because I wrote xmlfixup.pl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-09-22 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (205 votes), past polls