Hi,

I am writing a small script to download files of the web.
How can I get the "file size" without downloading the file?

use LWP::Simple;
my $file = "http://www.abc.com/file.mp3";
my @array = head($file);
print "$array[1]\n";

head() doesn't always returns all values?  why??
Sometime there are all values some time @array is empty!
Should I try LWP::UserAgent or is there any other way?

Reply via email to