in reply to Re: Passing a list as a subroutine's return value ( list of HTML::Element objects )
in thread Passing a list as a subroutine's return value ( list of HTML::Element objects )

Is it enough? Declaring $tmp outside the unescape_entitites sub makes the output even larger and identical to the expected one. So it seems you need to have the HTML::TreeBuilder::XPath object around to be able to access the nodes it matched.

Update: it seems the difference is the _parent contents which just contains the XPath internals. Disregard this node.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^2: Passing a list as a subroutine's return value ( list of HTML::Element objects )
  • Download Code

Replies are listed 'Best First'.
Re^3: Passing a list as a subroutine's return value ( list of HTML::Element objects )
by tobyink (Canon) on Sep 27, 2023 at 15:37 UTC