Problems? Is your data what you think it is? | |
PerlMonks |
Getting a filehandle for uploaded fileby luker (Initiate) |
on Oct 20, 2009 at 12:44 UTC ( [id://802217]=perlquestion: print w/replies, xml ) | Need Help?? |
luker has asked for the wisdom of the Perl Monks concerning the following question: On an old Redhat system with perl 5.6, this was part of the code to read an uploaded file and write to a file in the file system:
where $fh was simply the name of the uploaded file. I am migrating the code to a Debian box with perl v5.10.0 and the above has stopped working, with:
I tried using the CGI::upload method, like this:
where file_image is the name of the CGI param. But $handle_in is then undef. (I have checked that $cgi->param('file_image') does return the filename.) Any help gratefully appreciated.
Back to
Seekers of Perl Wisdom
|
|