Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
I had a long HTML file divided up into sections which were marked by <A> tags for the section names, like
<A NAME="audio"> blah blah blah <A NAME="video">etc etc etc
What I wanted to do was divide this file up into separate files, one for each section, and name them according to the section.
I messed about with various solutions and wrote three or four bits of code in order to do it in three or four passes, but I knew all along that there'd be a smart, Perlish way to do it.
How I did it isn't important -- how would you have done it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dividing HTML up into chunks
by nysus (Parson) on Jun 28, 2001 at 06:11 UTC | |
|
Re: Dividing HTML up into chunks
by andreychek (Parson) on Jun 28, 2001 at 07:34 UTC | |
|
Re: Dividing HTML up into chunks
by srawls (Friar) on Jun 28, 2001 at 06:09 UTC |