(Perl) Get the byte size of an internet resource