Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have to delete the first row of the table i.e. everything that comes between the first tr tags and add similar text at the last row of the table. Hence the perl script has to delete whatever comes between the first tr tags and add some text after the last tr tag. The actual html file is much longer than what is shown above. Could anyone help me on this? Thanks!<tr> <td WIDTH="16%" align="center"><b><a href="A01/A01.htm">Alpha ims10wk3 +3f</a></b></td> <td WIDTH="16%" align="center"><b><font face="Arial Black" color="#00F +F00"><b>GREEN</b></font></td> </tr> <tr> <td WIDTH="16%" align="center"><b><a href="A02/A02.htm">Beta ims10wk33 +ff</a></b></td> <td WIDTH="16%" align="center"><b><font face="Arial Black" color="#00F +F00"><b>GREEN</b></font></td> </tr> <tr> <td WIDTH="16%" align="center"><b><a href="A2/A2.htm">ims10wk33b</a></ +b></td> <td WIDTH="16%" align="center"> </tr>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to delete and add line in the middle of a file?
by dragonchild (Archbishop) on Oct 01, 2001 at 23:20 UTC | |
|
Re: How to delete and add line in the middle of a file?
by Ido (Hermit) on Oct 02, 2001 at 03:58 UTC | |
|
Re: How to delete and add line in the middle of a file?
by mischief (Hermit) on Oct 02, 2001 at 18:05 UTC |