You have come here 4 times in 4 years, each time asking for a script, each time being asked to show what you have done. You haven't once yet. Just exactly in what sense are you "rusty"?
This isn't a script writing depo. Nor it is a place where you can get code on a platter so you can "show up" a monk who asks for one mile and takes you two. What you want is fairly easy, but I'm not going to give you the code - the goal here is to teach, not supply. If you really believe you can do a better job than that programmer, then you should have no problem following these suggestions.
- Visit CPAN and download the HTML parser/DOM tree builder package of your choice. If you are unclear of what the best package for your needs is, you can also look for the many threads here on HTML parsing - see Super Search.
- Use the parser/tree builder to put the HTML tree into data structures you can edit and search. Refresh your rusty knowledge of data structures by reading perldsc.
- Load the data from the phrase file.
- Walk the data structure you loaded in from the HTML file to search and replace. grep is likely to be your friend here.
Once you have a first draft of your code written, I'm sure we'll be happy to give you feedback on the code.
Best of luck. But really, if this all seems like a lot to learn in order to avoid an extra perhaps unnecessary mile, maybe you ought to just swallow the mile or find another programmer that you trust more than that one.
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.