Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Tuesday, December 21, 2010

Perl HTML parsing - text nodes

As far as I can see, text nodes are accessed via the HTML::Element content_list method: this returns a list of child nodes. The members of this list are either HTML::Element object references, or strings of text.

HTML::Element also has as_text which returns all text under a node.

Followers

Blog Archive