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

Does someone know of a good (easy?) way to go about editing links within html files?

Replies are listed 'Best First'.
Re: Editing Links
by NetWallah (Canon) on Mar 10, 2008 at 02:41 UTC
    Have you tried a good (easy) HTML Editor ?

    On a more serious note .. If this is a perl related issue, you are probably looking for something like HTML::TokeParser.

         "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom

Re: Editing Links
by FunkyMonk (Bishop) on Mar 09, 2008 at 23:56 UTC
    You'll get a better response from the monks if you give us some indication of what your Perl problem is

Re: Editing Links
by locked_user sundialsvc4 (Abbot) on Mar 10, 2008 at 14:03 UTC

    Yes, there are too-many interpretations of your question to enable any one of us to figure out exactly what it is you are asking...

    When HTML files are produced, they are usually produced using a templating system such as (for example...) Template Toolkit.

    When you are dealing with a (well-formed) HTML file, a good way to approach the problem is to grab an HTML-parser, which will turn the HTML file into a tree. Then, a tool like XML::XPath will let you "query" that tree and find the particular points you want to change. Change them, then convert the tree back into an HTML output.