Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: XML::Twig and the monasteries XML ( normalize_space normalise_space )

by Anonymous Monk
on Jun 01, 2019 at 00:43 UTC ( [id://11100825]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Twig and the monasteries XML ( normalize_space normalise_space )
in thread XML::Twig and the monasteries XML

nope

Works for me, no leading newlines

{ author => { 830549 => { content => "haukex" } }, created => "2019-05-28 16:28:57", data => { field => { doctext => { content => "<p>More fun facts! I onc +e wrote a script to search a word list for words that make valid rege +xen which convert one valid word into another.</p> <c> \$ perl -le 'p +rint bangs =~s engender' bands \$ perl -le 'print halved =~s avatar' +halted \$ perl -le 'print stove =~s evener' stone </c>", }, parent_node => { content => 11100640 }, reputation => { content => 21 }, root_node => { content => 11100593 }, }, }, title => "Re^5: What does \$_ = qq~\"\$_\"~ do?", type => { 11 => { content => "note" } }, updated => "2019-05-28 16:28:57", }
  • Comment on Re^3: XML::Twig and the monasteries XML ( normalize_space normalise_space )
  • Download Code

Replies are listed 'Best First'.
Re^4: XML::Twig and the monasteries XML ( normalize_space normalise_space )
by LanX (Saint) on Jun 09, 2019 at 18:23 UTC
    Not for me.

    It would help if you showed your code.

    Probably a version problem?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Not for me. It would help if you showed your code. Probably a version problem?

      Eh?

      print pp $twig->parse( $data)->simplify( normalise_space => 111 );
      XML::Twig 3.49
        Thanks, that is working now.

        I had the same code but I used 1 not 111 ! (?)

        print pp $twig->parse( $data)->simplify(normalise_space => 1);

        Couldn't find the difference documented in XML::Twig...

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2026-02-07 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.