Web scraping
var ua = frequire('LWP::Simple')
var url = 'http://tycho.usno.navy.mil/cgi-bin/timer.pl'
var match = /<BR>(.+? UTC)/.match(ua.get(url))
say match[0] if matchOutput:
Oct. 27, 00:20:50 UTCLast updated
Was this helpful?
var ua = frequire('LWP::Simple')
var url = 'http://tycho.usno.navy.mil/cgi-bin/timer.pl'
var match = /<BR>(.+? UTC)/.match(ua.get(url))
say match[0] if matchOct. 27, 00:20:50 UTCLast updated
Was this helpful?