in reply to Output of Date

"1020952472" is the number of seconds since the epoch.
What you want to do is feed this number to localtime(). Otherwise, it will use value returned by time().
$data = (head('http://web/web.html'))[2]; $days = ('Sun','Mon','Tue','Wed','Thu','Fri','Sat')[(localtime $data)[ +6]];
--perlplexer

Update:
fixed a typo