cyphedude has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas? The server logs show no errors by the way, nor does my debugger. Also, I happenned to come over some code that recommended using the upload() function instead of param(). I tried that (perhaps incorrectly though), and it didn't work either. I would be greatful for any comments! I love you guys! :)my $filename = $q->param("file"); my @data_from_file = get_file_data($filename); sub get_file_data { my ($filename) = @_; open (INPUTFILE, UPLOAD_DIR . $filename) || die "Can't open $filename" +; my @data_from_file; while (<INPUTFILE>) { push @data_from_file, $_; } close (INPUTFILE) || die "Can't close $filename"; unlink (UPLOAD_DIR . $filename) || die "Can't delete $filename"; return @data_from_file; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: A trivial CGI.pm problem...
by merlyn (Sage) on Nov 11, 2003 at 17:49 UTC | |
|
Re: A trivial CGI.pm problem...
by clscott (Friar) on Nov 11, 2003 at 18:27 UTC | |
by cyphedude (Initiate) on Nov 12, 2003 at 18:13 UTC | |
|
Re: A trivial CGI.pm problem...
by Anonymous Monk on Nov 11, 2003 at 17:49 UTC |