Hi all,
I have a bunch of HTML files but I need to spit out a list of all the images tag within them.
Anyone know how to go about it?
I tried this but it just doesnt work right.
open(LOOKFILE,"myfile.html"
or die ("couldn't open"
;
while (<LOOKFILE>){
/<img (.*)>/i;
print "$1\n" if $1;
}
close(LOOKFILE);
Gary "thank in advance" Haran
I have a bunch of HTML files but I need to spit out a list of all the images tag within them.
Anyone know how to go about it?
I tried this but it just doesnt work right.
open(LOOKFILE,"myfile.html"
while (<LOOKFILE>){
/<img (.*)>/i;
print "$1\n" if $1;
}
close(LOOKFILE);
Gary "thank in advance" Haran