You are getting this error because you are treating an ordinary scalar $wfile like an indirect file handle. What are you trying to do with this? Why can't you just say$wfile = $cgi->param("toping"); $wfname = 'toping'; open (DAT,">/home/deruytja/webserver/rifucgi/temp_ul/$wfname") or die +'Error processing file INPUT: ',$!; binmode $wfile;
As a side note, there are a number of things you've done here which are poor practice from a modern web perspective, including 2 argument opens, bareword filehandles, and parroting unescaped text back to the browser. What resources are you using to learn Perl web scripting?$wfile = $cgi->param("toping"); open (my $dat,">", "/home/deruytja/webserver/rifucgi/temp_ul/$wfname") + or die 'Error processing file DAT: ',$!; print $dat $wfile;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Problems calling a second perl script from the first
by kennethk
in thread Problems calling a second perl script from the first
by deruytja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |