Hi all,

I made the following script for parsing an html file and get the addresses,
but they are printed twice instead of only once each one.
Do you have any idea why?

Here is the script:

$file="C:\\Program Files\\Apache Group\\Apache\\htdocs\\linux.htm";
open (IN, "$file");
while (<IN>) {
$line = /<a href=\"(.+)\">.+<\/a>/;
print $1;
print "<br>";
}
close IN;

I've made an .html file with a single address (link) to test the script, but
this script prints that address twice.
It's just like when the script reads each line twice.

Thank you for any help.


Teddy,
My dear email address is [EMAIL PROTECTED]



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to