Hello,
I need to add to an existing hash, $params, that reads from a tempfile. The code looks something like this,
my $cgi = new CGI(); my $params = $cgi->Vars();
# now we have some parameters from the form and need to add some additional data # to the $params hashref IE. $params->{name}, $params->{email}, $params->{address},...etc.,
# Now open tempfile to obtain some additiona data to add to the $params hashref
open(TMP,"</some/temp_file"); while(<TMP>) { my($name,$value) = split '::',$_; # here's where I need to add to the hashref $params # can this be done and still maintain the existing $params hashref values # already assigned. $params->{$name} = $value; }
Now I will have all the form parameters and the parameters from the tempfile added to the hashref $params.
TIA. -- Mike(mickalo)Blezien
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>