Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: John Robinson
Thanks. Having given your HTML filter a little thought, I suspect you now merit the official title of Lord of Perl Recursion.
82 posted on 09/28/2001 4:46:14 AM PDT by George W. Bush
[ Post Reply | Private Reply | To 58 | View Replies ]


To: George W. Bush
Perl simply rocks.

But I can't take all the credit for most of the work is done by HTML::TreeBuilder. All I did was write a little function to traverse the tree and deal with the nodes (keep, toss, etc.)

The bulk of the work was coming up with a list of allowable tags/attributes. It's a hash (tag) of hashes (attributes). The values can be regular scalars (an action code) or code refs to dynamically take action or even change the parameter's value.

88 posted on 09/28/2001 4:53:59 AM PDT by John Robinson
[ Post Reply | Private Reply | To 82 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson