in reply to Problems calling a second perl script from the first
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems calling a second perl script from the first
by deruytja (Novice) on Apr 13, 2015 at 15:30 UTC | |
by kennethk (Abbot) on Apr 13, 2015 at 16:07 UTC | |
by deruytja (Novice) on Apr 13, 2015 at 16:40 UTC | |
by soonix (Chancellor) on Apr 14, 2015 at 10:37 UTC |