Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] perl and xml



That is just the way Rich coded it.

On Tue, Oct 10, 2017 at 1:50 PM, Bill Ricker <bill.n1vux at gmail.com> wrote:

> >   root[0][0].text = 'good_tag_001'
>
> So much for Python supposedly being more OO than Perl.
> That looks more like Visual Basic.
>
> The hard part in his problem is navigating from sibling to extract the
> 'good_tag_001' from to the sibling to insert it into.  Your "example"
> gives no hint on how that might work.
>
> XML::Twig is particularly good at that sort of local navigation, hence
> my suggestion for that.
>
> He asked for Perl help. If one were going to suggest a superior language
> despite his request, any answer that isn't in the Lisp family (that
> includes Haskell) is silly, because Lisp structure is a natural match
> to XML. XML is just Lisp with no verbs, bent brackets, and named
> closing parens </tag>.
> XML is Greenspun's 10th Law incarnate.
>
> > parsing XML, and python is part of the base Linux distro in most
> environments.
>
> It may come as a surprise, but most GNU/Linux distros still ship Perl too.
> Rumors of Perl's death are greatly exaggerated.
> Perl6 hasn't killed Perl5 but revived it.
> By rotating release manager, we now have annual feature releases in
> addition to patch releases.
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss
>



-- 
--
Jerry Feldman <gaf.linux at gmail.com>
Boston Linux and Unix
PGP key id: 6F6BB6E7
Key fingerprint: 0EDC 2FF5 53A6 8EED 84D1  3050 5715 B88D 6F6B B6E7



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org