knirirr has asked for the wisdom of the Perl Monks concerning the following question:
However, $data is always empty, and Data::Dumper reveals that the only information in $file is the basename of the file I've uploaded. Can anyone suggest where to look next whilst debugging? I am somewhat confused by this...my $file = $query->param("uploaded_file"); my $data; while (<$file>) { $data .= $_; } $return = &validate_text($data); if ($return == 1) { # do stuff... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm file uploading
by eric256 (Parson) on Feb 02, 2005 at 20:49 UTC | |
|
Re: CGI.pm file uploading
by Mutant (Priest) on Feb 02, 2005 at 17:57 UTC | |
|
Re: CGI.pm file uploading
by talexb (Chancellor) on Feb 02, 2005 at 17:57 UTC | |
by knirirr (Scribe) on Feb 02, 2005 at 20:23 UTC | |
by talexb (Chancellor) on Feb 02, 2005 at 21:02 UTC | |
|
Re: CGI.pm file uploading
by Animator (Hermit) on Feb 02, 2005 at 17:58 UTC | |
|
Re: CGI.pm file uploading
by kprasanna_79 (Hermit) on Feb 02, 2005 at 20:17 UTC |