Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want to write a script that will take all .html/.htm/.shtml scripts in a current folder, open them and and alt tags to every image that doesn't already have them.
Reading files from the directory is something I can probably manage on my own but I wouldn't know an efficient way to run through all applicable files and substitute/add a new image ALT tag. I will be reading from a text file from the same directory as the script for ALT tags one per line meaning the first s/// will be using the first word on the first line of the text file, the second will s/// the second line for the text file, etc. And if it runs out of lines in the text file and still has more to s///, it'll start over and repeat from the top of the text file again.
Any suggestions on how to make a script like this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Slurping and s/// a group of files from a list
by davido (Cardinal) on Nov 02, 2004 at 19:01 UTC | |
by ishnid (Monk) on Nov 02, 2004 at 19:52 UTC | |
|
Re: Slurping and s/// a group of files from a list
by bpphillips (Friar) on Nov 02, 2004 at 19:08 UTC | |
by davido (Cardinal) on Nov 02, 2004 at 19:19 UTC |