There's more than one way to do things | |
PerlMonks |
getting and printing form values etc from html stripping out all elseby kalkisong (Initiate) |
on Feb 24, 2010 at 19:21 UTC ( [id://825146]=perlquestion: print w/replies, xml ) | Need Help?? |
kalkisong has asked for the wisdom of the Perl Monks concerning the following question:
I've been working on some code that will search several html pages in my site and strip out specific lines of html, reformat it the way I want and print to a single page.
right now it sort of works, I can get my lines but it prints the entire line, I am not sure how to write the code to get exactly want I want.
example: current perl code below will find all lines on html pages that have br< exists on the same line the code prints the entire line like this below. <img src="http://www.mysite/graphics/blue.jpg" alt="Hey" width="100" height="100" ><br>yada yada I really just want it to print something like this: <g:image_link>http://www.mysite/graphics/blue.jpg</g:image_link> on one line. I am also grabbing hidden forms as well and trying to print the just the values from them as well. How do strip out <br> <hr> <b> etc, etc, etc. I am stuck now and not really sure what to do now thank you for assistance.
Back to
Seekers of Perl Wisdom
|
|