in reply to Perl to add a table once and then when run again delete the original table (but not the whole html document)!
open(DAT,">>$sitedata") || die("Cannot Open File"); [download]
open(DAT,'>', $sitedata) || die("Cannot Open $sitedata: $!"); [download]