Are you doing the above only for a single run? If that is so, then you should go ahead and change the html manually, which will save you time as well as provide more flexibility. If that is not the case, then scripts written in perl would very much solve the purpose.
slurp it into an array, to loop through
You do not have to do that, just for the purpose of looping.
File looping constructs are very flexible and solve the purpose very well.
a 'master' subroutine calls all other subs, in-turn
What do the other subs do? Is the subs in built in the scripts themselves? or are they dynamically generated?
I know that the HTML parser modules are better
Yes you are right. HTML parsers are simpler and they make your code easier to understand. Try the link for
HTML Parsers Apart from which you can also find other modules related to html, xml parsers
over here
Happy scripting!!!
Did you ever notice that when you blow in a dog's face, it gets mad at you but when you take him on a car ride,he sticks his head out the window and likes it?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.