Can anyone help me rewrite the following part of perl script. I need to add another url if I want to count for Canada.

&get_url;

$number_of_tries = 0;
while ($found eq "FALSE" && $number_of_tries < 50) {
&get_url; # set $found in this function.
sleep 10; # sleep 10 seconds before trying again.
$number_of_tries += 1;
}

}
#
#
#
sub set_url {
$url = "http://www.ny.frb.org/pihome/statistics/forex12.shtml
}
#
#

Please let me know whether you need to see the whole script.
You can send me e-mail at katebagin@yahoo.com

Thank you.