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

Re^2: I love XML::Twig

by mirod (Canon)
on Oct 06, 2006 at 16:38 UTC ( #576708=note: print w/replies, xml ) Need Help??


in reply to Re: I love XML::Twig
in thread I love XML::Twig

Hum, I'll have to check that. Does this happen with a specific version of Perl, or in any 5.8.*?

As you mention, the problem most likely comes from XML::Parser, which was written when 5.5 was still cutting edge, and has been in "light maintenance mode" for quite some time now. That doesn't prevent me from fixing it in XML::Twig though (the length of the RT queue leaves me little hope that XML::Parser itself will be fixed anytime soon).

More generally, please, please, let me know if you find any bug in the module, I am more than happy to fix them if I can.

Replies are listed 'Best First'.
Re^3: I love XML::Twig
by Joost (Canon) on Oct 06, 2006 at 16:49 UTC

      Do you have a test case? I tried a couple of tests and could not reproduce the problem:

      perl -MXML::Twig -l -MEncode -e'print Encode::is_utf8( XML::Twig->npar +se( "<d>foo</d>")->root->text)' perl -MXML::Twig -l -MEncode -e'print Encode::is_utf8( XML::Twig->npar +se( qq{<?xml version="1.0" encoding="ISO-8859-1"?><d>foo</d>})->root- +>text)'

      Both give me a result of 1

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576708]
help
Chatterbox?
[Cosmic37]: greetings earthlings please can someone improve my pathetic perl knowledge
[Cosmic37]: I have 2 files each with datetime and other data in unknown order and I want to find rows from both files matching by datetime and output them combined/ concatenated
[Corion]: Sure
[Corion]: Do you have any specific interests or general Perl knowledge?
[Cosmic37]: should I slurp? should I grep? Noble Lords I wish you good karma and beg your advice
[Corion]: Cosmic37: Ah, see perlfaq4, about How do I compute the intersection of two arrays

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-06-29 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (672 votes). Check out past polls.