Remove the $tmp->delete. You're deleting things from within the DOM before trying to return it.
In reply to Re: Passing a list as a subroutine's return value ( list of HTML::Element objects )
by tobyink
in thread Passing a list as a subroutine's return value ( list of HTML::Element objects )
by mldvx4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |