MelaOS has asked for the wisdom of the Perl Monks concerning the following question:
the pointer to hash is basically retrieving values fomr the apache upload parameter. so from the code i can see that we retrieve the values using apache$$rhash_params{'import_file'}->fh; $$rhash_params{'import_file'}->filename
but manually i have no idea how to populate values into these two values. i've read somewhere it's some sort of apache table or something, it got too technical so i couldn't continue reading it. yea i know i'm an idiot, so please help me out :) thanks ~perlnoob#------------------------------------------------------ # Handle all POST, GET, multipart, and upload requests #------------------------------------------------------ my $r = Apache->request(); my $apr = Apache::Request->new($r); my @keys = $apr->param; foreach (@keys) { my @value = $apr->param($_); next unless scalar @value; if (@value>1){ $params{$_} = \@value; } else { $params{$_} = $value[0]; } } my $upload = $apr->upload; if ($upload) { $params{'import_file'} = $upload; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to put values into $$rhash_params{'import_file'}->filename?
by jonadab (Parson) on Sep 17, 2008 at 10:32 UTC | |
by MelaOS (Beadle) on Sep 24, 2008 at 09:50 UTC |