On Mon, 21 Jul 2014, Charlie Brady wrote:

> On Mon, 21 Jul 2014, Charlie Brady wrote:
> 
> > So I can do:
> 
> Without the stupid c&p error:
> 
>   my %lexicon = map
>      { my $entry = $_ ; 
>             $entry->base->content => 
>                    $entry->trans->contents->first->content
>      }
>           $dom->find('lexicon entry')->each;

No, that doesn't work for me, because of whitespace.

cf.

$dom->parse('<!-- test --><b>123</b>')

and:

$dom->parse(' <!-- test --><b>123</b>')

Can anybody suggest anything, should of using s/// and parsing a new 
Mojo::DOM object? I can see Mojo::DOM::text, but dont see how I could use 
it.


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to