Welcome to the Monastery | |
PerlMonks |
Re: Removing nested div Tag from HTMLby metaperl (Curate) |
on Aug 18, 2011 at 20:06 UTC ( [id://921062]=note: print w/replies, xml ) | Need Help?? |
Are you trying to extract it or delete it? Either way, HTML::Tree is far simpler than what you are doing. The look_down method is all you need. Here's an article on scanning HTML
So basically, you just need to:
The mantra of every experienced web application developer is the same: thou shalt separate business logic from display. Ironically, almost all template engines allow violation of this separation principle, which is the very impetus for HTML template engine development. -- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"
In Section
Seekers of Perl Wisdom
|
|