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'
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to