in reply to Re: Problems calling a second perl script from the first
in thread Problems calling a second perl script from the first
frankly, I copied the routine for uploading a file (http://aktuell.de.selfhtml.org/artikel/cgiperl/file-upload/, a german HTML "learning" site) as I didn't had any clue how to do it in perl. I think it had something to do with uploading and converting the file.
If I modifie the code like that:
$wfile = $cgi->param("toping"); + #Upload Teil des Scripts $wfname = 'toping'; #Upload Teil des Sc +ripts open (my $DAT,">", "/home/deruytja/webserver/rifucgi/temp_ul/$wfname") + or die 'Error processing file INPUT: ',$!; #Upload Teil +des Scripts print $DAT $wfile;
I'll only get the filename written to my temp file (the "toping" one)
I've modified the bareword filehandles already (I know barewords are a bad practice and I can't remeber why I did it this way).
I'm mostly using google and the "trial and error" method for learning. Maybe you could point me to my problems? Especially the open arguments and the unescaped text.
I'm not a skilled programmer as I've learned more in the direction of hardware and planning
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problems calling a second perl script from the first
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 |