in reply to apache::asp

# my $fh = $Request->FileUpload('upload_file', 'FileHandle'); open DEST, ">/where/you/whant/to/write/it" ; # remember to handle errors... while(<$fh>) { print DEST $_; } close(DEST);

Replies are listed 'Best First'.
RE: Re: apache::asp
by merlyn (Sage) on Sep 19, 2000 at 22:07 UTC
RE: Re: apache::asp
by Corion (Patriarch) on Sep 19, 2000 at 23:53 UTC

    Please use binmode($fh) when copying binary files. This will prevent your code from breaking under operating systems and programming languages that make a difference between text and binary files. Your code would scramble files under Windows.

      a bit pedantic? :-)