Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: XMLin question

by bart (Canon)
on Feb 15, 2013 at 22:25 UTC ( #1018986=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^6: XMLin question
by Anonymous Monk on Feb 15, 2013 at 22:43 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".

    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://1018986]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2016-12-08 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.