in reply to Re: How to find SELECT tag in HTML and print its values?
in thread How to find SELECT tag in HTML and print its values?
$file_name="index.htm"; open FILE, "$file_name" or die "can't read file: $!"; $char = getc FILE; while($char=<MYFILE>) { $pattern1="select class=form"; if(/$pattern1/i)#search for the string { $pattern2="option"; if(/$pattern2/i)#search for the options { $pattern3="value"; if(/$pattern3/i)#search if the options has value associa +ted with it { print $pattern4="/select"; open (MYFILE, ">save.txt") or die "no such file"; ............. .......... }//end first if statement }//end second if statement }//end while
edit (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to find SELECT tag in HTML and print its values?
by Roy Johnson (Monsignor) on Mar 24, 2004 at 17:58 UTC | |
|
Re: How to find SELECT tag in HTML and print its values?
by Abigail-II (Bishop) on Mar 24, 2004 at 17:20 UTC | |
|
Re: Re: Re: How to find SELECT tag in HTML and print its values?
by Jasper (Chaplain) on Mar 24, 2004 at 17:32 UTC |