in reply to Re: Passing a lot of form values
in thread Passing a lot of form values
If that's the case, you might consider storing the information as a hash...my %incoming = &read_input; # Read information into associated # array %incoming. my $qty = $incoming{'qty'}; # Fetch the text from the array. my $type = $incoming{'type'}; # Fetch the text from the array. my $equip = $incoming{'equip'}; # Fetch the text from the array. my $dept = $incoming{'dept'}; # Fetch the text from the array. my $fstore = $incoming{'fstore'}; # Fetch the text from the array. my $dreceived = $incoming{'dreceived'}; # Fetch the text from the arra +y. my $rstore = $incoming{'rstore'}; # Fetch the text from the array. my $ringstore = $incoming{'ringstore'}; # Fetch the text from the arra +y. my $dated = $incoming{'dated'}; # Fetch the text from the array. my $comment = $incoming{'comment'}; # Fetch the text from the array. my $id = $incoming{'id'}; # Fetch the text from the array. my $action = $incoming{'action'}; # Fetch the text from the array.
And then after you've populated your hash, add it to a list...my %data; $data{'qty'} = $incoming{'qty'}; $data{'type'} = $incoming{'type'}; # etc...
And then you can just access the members of the list sequentially when you need to update the database. Or am I missing something in your code?my @hashes; push @hashes, $data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing a lot of form values
by Trihedralguy (Pilgrim) on May 23, 2007 at 15:36 UTC | |
by carmen (Initiate) on May 23, 2007 at 17:27 UTC | |
by starX (Chaplain) on May 23, 2007 at 16:16 UTC |