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

Hi Monks,

I have an html file which containts some url,

FILE

info: announcement

info: Update

...... so on.

in it announcement, and update is an url, i want to grep all "update" and dump it in a new html file ....

can any one help me with this.

Thanks

Replies are listed 'Best First'.
Re: greping url from HTML file
by ikegami (Patriarch) on Mar 23, 2009 at 05:04 UTC
Re: greping url from HTML file
by CountZero (Bishop) on Mar 23, 2009 at 07:17 UTC
    Quoting the exact HTML you are working with would be A Good Thing. An example of how your new HTML file should look would also be a good idea.

    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

Re: greping url from HTML file
by ig (Vicar) on Mar 24, 2009 at 00:34 UTC

    Some of the material at Working with HTML might be helpful.

    You may also find some of the similar previous posts helpful. You can find them using search. See Searching-PerlMonks for help with this.