Miko O'Sullivan wrote: >Andy Wardley wrote: > >>For example, it might be possible to do something like this: >> >> use Perl6::XML; >> >> <thingy> >> <blah>blah blah</blah> >> </thingy> >> >> use Perl6; >> >> print $thingy.blah; > > > >We already have the ability to embed foreign languages (XML, HTML, >whatever) using here docs: > > $myml = MyXmlParser->new(<< '(MARKUP)'); > <thingy> > <blah>blah blah</blah> > </thingy> > (MARKUP) >
Well, P6C has the new ability of inlining code from another parrot- based language. All someone needs to do is write an XML processor that spits out pasm/imcc, and then: use inline 'XML', q[ <thingy> <blah>blah blah</blah> </thingy> <processing XSLT stuff or whatever here /> ]; or even: use inline 'XML', <<"XML_IS_FUN"; <thingy> <blah>blah blah</blah> </thingy> <processing XSLT stuff or whatever here /> XML_IS_FUN See how easy that is? Who needs a stinking P6ML now? (-: Joseph F. Ryan [EMAIL PROTECTED] -- This message was sent using 3wmail. Your fast free POP3 mail client at www.3wmail.com