[Israel.pm] Downloading using LWP
Mikhael Goikhman
migo at homemail.com
Wed Feb 18 02:42:32 PST 2009
On 18 Feb 2009 11:06:17 +0200, Berler Chanan wrote:
>
> This is a small LWP utility I wrote:
> It works fine using Windows, but it doesn't work when I try to download
> a file into unix, does anyone knows what I did wrong?
Does not work meaning what exactly? File not created or something else?
> open FILE, ">$lv_plugin";
Always check the system calls for failure:
my $filename = "/tmp/" . $lv_plugin;
open FILE, ">$filename" or die "Can't save $filename: $!\n";
Regards,
Mikhael.
--
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'
More information about the Perl
mailing list