Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by PodMaster (Abbot)
on Apr 21, 2006 at 02:59 UTC ( #544764=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: How do I perform a global substitute in an HTML::Element

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://544764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-28 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls