in reply to submitting files to a cgi
Why are you writing a while loop when you're slurping the file anyway? It will suffice tomy $fh = $query->upload('uploaded_file'); # ... while(<$fh>) { # ... }
my $data = do { local $/; <$fh> };
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: submitting files to a cgi
by Anonymous Monk on Jan 29, 2003 at 10:39 UTC |