I'm uploading to CPAN now. It's on github at http://github.com/metaperl/html-element-library
=head2 Tree Rewriting Methods =head3 "de-prepping" HTML Oftentimes, the HTML to be worked with will have multiple (too many) sample rows: <OL> <LI>bread <LI>butter <LI>beer <LI>bacon </OL> But, before you begin to rewrite the HTML with your model data, you typically only want 1 or 2 sample rows. Thus, you want to "crunch" the multiple sample rows to a specified amount. Hence the C<crunch> method: $tree->crunch(look_down => [ '_tag' => 'li' ], leave => 2) ; The C<leave> argument defaults to 1 if not given. The call above would "crunch" the above 4 sample rows to: <OL> <LI>bread <LI>butter </OL> ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ seamstress-discuss mailing list seamstress-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/seamstress-discuss