$data = (head('http://web/web.html'))[2]; print "$data\n"; #### $dayz = (Sun,Mon,Tue,Wed,Thu,Fri,Sat)[(localtime)[6]]; print $dayz;