Software error while executing CGI script
I have a cgi script for upload which is as follows #!/usr/bin/perl use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = new CGI; my $file = $cgi->param('file'); $file=~m/^.*(\\|\/)(.*)/; # strip the remote path and keep the filename my $name = $2; open(LOCAL, ">/home/Desktop/$name") or die $!; while(<$file>) { $data .= $_; } print $cgi->header(); print "$file has been successfully uploaded... thank you.\n"; print $data; The HTML file is as follows <html> <head> <title>Test</title> </head> <body> <form enctype="multipart/form-data" action="upload.cgi" method="post"> <input type="hidden" name=