Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by PodMaster (Abbot)
on Apr 21, 2006 at 02:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://544764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found