http://qs1969.pair.com?node_id=544764


in reply to How do I perform a global substitute in an HTML::Element

I can manualy access each string that needs to be fixed by navigating the template structure, but that is somewhat fragile. Is there a better way of doing this?
Use something like Template, and it becomes as easy as pie.

Or you could naviate your datastructure, since the structure seems well defined.

Or use look_down (and friends) to recurse through your $element, and do replacements where appropriate.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.