abecedae has asked for the wisdom of the Perl Monks concerning the following question:
Decommenting any of the quadruple# causes errors. Any thoughts?my $q = new CGI; my $file = $q->param( "file" ) #this is passed correctly my $fh = $q->upload( $file ); #this returns "" #Necessary for non-unix systems ####binmode $fh;#### binmode OUTPUT; #write contents to output file ####while ( read( $fh, $buffer, BUFFER_SIZE ) ) {#### #### print OUTPUT $buffer; #### ####} #### close OUTPUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Filehandles with CGI.pm
by NetWallah (Canon) on Jun 22, 2004 at 01:01 UTC | |
by abecedae (Initiate) on Jun 22, 2004 at 01:23 UTC | |
by Anonymous Monk on Jun 22, 2004 at 07:50 UTC | |
|
Re: Filehandles with CGI.pm
by neeraj (Scribe) on Jun 22, 2004 at 10:26 UTC |