logo       

Re: XML parsing in P6: msg#00013

lang.perl.perl6.compiler

Subject: Re: XML parsing in P6

On 3/12/06, Premshree Pillai <premshree.pillai@xxxxxxxxx> wrote:
> On 3/13/06, Yuval Kogman <nothingmuch@xxxxxxxxxxxx> wrote:
> > Paste code / errors?
>
> I have this bit of code:
>
> my $tree = XML::Parser::Lite::Tree::instance()->parse($xml_data);
>
> And following's the error Pugs throws out:
>
> unexpected ">"
> expecting ":", term postfix, operator, ";" or "}"
> at test.p6 line 28, column 63

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);

Luke



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

News | FAQ | advertise