+Given this initial loltree:
+
+ my $initial_lol = [ note => [ shopping => [ item => 'sample' ] ] ];
+
+This code:
+
+ sub shopping_items {
+ my @shopping_items = map { [ item => _ ] } qw(bread butter beans) ;
+ \@shopping_items;
+ }
+
+ my $new_lol = HTML::Element::newnode($initial_lol, item => shopping_items());
+
+ will replace the single sample with a list of shopping items:
+
+
+ [
+ 'note',
+ [
+ 'shopping',
+ [
+ [
+ 'item',
+ 'bread'
+ ],
+ [
+ 'item',
+ 'butter'
+ ],
+ [
+ 'item',
+ 'beans'
+ ]
+ ]
+ ]
+ ];
+
+Thanks to kcott and the other Perlmonks in this thread:
+http://www.perlmonks.org/?node_id=912416
+
+
+=head1 SEE ALSO
+
+=head2 L<HTML::Tree>
+
+A perl package for creating and manipulating HTML trees.
+
+=head2 L<HTML::ElementTable>