Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[MidLifeXis]: Leveraging prove to do data validation on an ETL process. What am I smoking??? :-)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2016-12-07 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (131 votes). Check out past polls.