I have changed my code to the following and I am still getting the same result i.e. the contents of the file are not read! Here is the code I am using:
use CGI qw/:all/; my $form = new CGI; print $form->header; my $filehandle = $form->upload('UPLOADFILE'); print "<br>Contents of file:<br><pre>"; while (<$filehandle>){ print ;} print "</pre></body></html>";
I'm very new to PERL but the problem seems to be that the filehandle for the local file (i.e. the file to be uploaded) is not pointing to the local file for some strange reason. If I use the 'open' command to read the contents of the local file then I get an error saying "no such file or directly". Is this problem something to do with paths and forward and back slashes>
Any more help would be appreciated
Eoin
In reply to Re: Re: Uploading Files (Win32)
by Anonymous Monk
in thread Uploading Files (Win32)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |