proactive1 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Probably Easy for a Perl Monk
by ELISHEVA (Prior) on Jan 23, 2011 at 06:39 UTC

    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.

    1. 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.
    2. 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.
    3. Load the data from the phrase file.
    4. 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.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Probably Easy for a Perl Monk
by CountZero (Bishop) on Jan 23, 2011 at 06:50 UTC
    Have you thought of using a Templating solution?

    Such as Template::Toolkit perhaps?

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Probably Easy for a Perl Monk
by Anonymous Monk on Jan 23, 2011 at 05:18 UTC
    I tried but I am too rusty.

    Show your effort :)

    We should end up with

    You should hire programmers :)

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Probably Easy for a Perl Monk
by Anonymous Monk on Jan 23, 2011 at 15:28 UTC

    Is it possible to close a thread? proactive1 is clearly having his fun with the Monastery. He's wasted enough of some very good people's time.

      No, perlmonks doesn't close threads -- we should, but we don't