{Lights going off - bells - red lights}
Someone else said the same thing and I didn't get it. Putting "file" means
not passing a literal "file" but the value "file" from the html form. I see,
said the blind man ...
I'm definitely going to give the authors a piece of my mind - torturing poor
newbies by giving us broken example code. And this is an O'Reilly book, too!
That change allowed me to run perl -w and the only error left in my apache
error log is a "premature end of script" so I'm sure that was it. I'll post
exactly what I had to change to the list after I get it working (she says
with confidence).
Thanks much!
>
> # the 'upload' subroutine has the same usage as 'param', but is used for
> file uploads.
> # so instead of passing $file to 'upload' you should be passing "file".
> # (this is according to the CGI docs.) 'upload' returns a filehandle,
while
> 'param' returns
> # a file name. this may be your problem.
> my $fh = $q->upload( $file );
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]