logo       

Re: XML parsing in P6: msg#00016

lang.perl.perl6.compiler

Subject: Re: XML parsing in P6

On 3/13/06, Premshree Pillai <premshree.pillai@xxxxxxxxx> wrote:
> On 3/13/06, Luke Palmer <lrpalmer@xxxxxxxxx> wrote:
> > Well, yeah. Just because you're using a Perl 5 module doesn't mean
> > you use Perl 5 syntax.
> >
> > my $tree = XML::Parser::Lite::Tree::instance().parse($xml_data);
>
> Heh. I had tried that already. :-) This is the error I get in this case:

Well, as Yuval points out, I've been dead for a while, so this bug may
have already been fixed, but if not:

my $parser = XML::Parser::Lite::Tree::instance();
my $tree = $parser.parse($xml_data);

Should do the trick. This bug is perhaps one of the most annoying in
Pugs, and I have tried to fix it on several occasions with no success.

Luke



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise