Subject: | errors when trying to use module |
I've written a small script to upload files:
#!/opt/dianomi/perl/bin/perl -w
use strict;
use jQuery::File::Upload;
my $j_fu = jQuery::File::Upload->new;
$j_fu ->upload_dir("mydir");
$j_fu->accept_file_types(['image/jpeg','image/png','image/gif','text/html']);
$j_fu->handle_request;
$j_fu->print_response;
But when I try to run it I get the following errors:
Use of uninitialized value in concatenation (.) or string at
xx/perl/lib/site_perl/5.12.2/jQuery/File/Upload.pm line 869.
Use of uninitialized value in string ne at xx/perl/lib/site_perl/5.12.2/jQuery/File/Upload.pm line 921.
[Wed Mar 26 15:03:19 2014] [error] Can't call method "clone" on an undefined value at xx/perl/lib/site_perl/5.12.2/jQuery/File/Upload.pm line 925.\n
and the script gives a server error. (I've censored the details a little in obvious ways)
perl is:
This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux