Please bottom post
> Create a form for upload (you may also use CGI.pm to create the form)
> like this:
>
> method="post">
>
>
>
>
>
> myperl.pl
>
> use CGI (:standard);
>
> my $file = param("file_to_upload");
> my $destination = "any_name.txt";
Please look at the preferre
estination");
while (<$file>){
print FH -$_;
}
close FH;
You may also use "read or sysread".
See perldoc -f read for details
HTH
Babs
||> -Original Message-
||> From: John Pretti [mailto:[EMAIL PROTECTED]
||> Sent: Tuesday, April 20, 2004 3:51 PM
/path/$destination");
while (<$file>){
print FH -$_;
}
close FH;
You may also use "read or sysread".
See perldoc -f read for details
HTH
Babs
||> -Original Message-
||> From: John Pretti [mailto:[EMAIL PROTECTED]
||> Sent: Tuesday, April 20, 2004 3:51 PM
>
> All,
>
> I am a total n00b to perl and have decided to write my own file upload
> script for a task I have to do. It is my intention to use CGI to
accomplish
> to allow users to upload a file through a webpage. I do not quite
understand
> the process, and thought it would be similar to the p
All,
I am a total n00b to perl and have decided to write my own file upload
script for a task I have to do. It is my intention to use CGI to accomplish
to allow users to upload a file through a webpage. I do not quite understand
the process, and thought it would be similar to the php function cop