>Curtis,
Thanks a lot for your help, it works perfectly and it isn't harder to
maintain than the solutions I have tried out so far.
Marcus
>=
>Senior Programmer
>Onsite! Technology (http://www.onsitetech.com/)
>"Ovid" on http://www.perlmonks.org/
>
>_
--- Marcus Willemsen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> can anybody help?
> I am trying to set up a form using a hash of hashes to build different
> types of fields as I think it is easier to check and process form input:
>
> my %fields = (textfield => { 'Name_of_textfield' => { -name =>
Camilo Gonzalez wrote:
>
> The @model array is composed of condo unit numbers, 301-627ish. The values
> may later be names so I'm treating them as strings.
ok, now we're getting somewhere. i'm posting your original code here:
> I'm trying to construct a hash of hashes from data sent to a scrip
The @model array is composed of condo unit numbers, 301-627ish. The values
may later be names so I'm treating them as strings.
-Original Message-
From: fliptop [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 7:02 PM
To: Camilo Gonzalez
Cc: [EMAIL PROTECTED]
Subject: Re: Ha
[reply posted to list]
Camilo Gonzalez wrote:
>
> Yes, Fliptop. I wrote that in my orignal email. Would appreciate any advice
> in that regard.
ok, good. now, what is in the @model array?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
It's tough to say from the code you have here. Have you tried printing out
$i, $key and all of $model to make sure they all have the values you expect?
I would run this through perl with the -d option to watch the values as they
change. If you haven't used the perl debugger before it's not hard
Camilo Gonzalez wrote:
>
> Fliptop,
>
> Haven't studied all of CGI.pm's capability's yet. Is there an easier way to
> build a hash of hashes using it?
i was just wondering. is that what you're trying to do?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
onday, July 30, 2001 11:45 AM
To: 'Camilo Gonzalez'; '[EMAIL PROTECTED]'
Subject: RE: Hash of hashes
>This is the code that fails me:
>
> $i=0;
> for $fields(split /&/, @data) {
> ($key, $value) = split /=/,
Fliptop,
Haven't studied all of CGI.pm's capability's yet. Is there an easier way to
build a hash of hashes using it?
-Original Message-
From: fliptop [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 11:46 AM
To: Camilo Gonzalez
Cc: '[EMAIL PROTECTED]'
Su
>This is the code that fails me:
>
> $i=0;
> for $fields(split /&/, @data) {
> ($key, $value) = split /=/, $fields;
> $bigData{$model[$i]}{$key} = "$value";
> $i++;
> }
>
> It won't print out @data or @model f
Camilo Gonzalez wrote:
>
> $i=0;
> for $fields(split /&/, @data) {
> ($key, $value) = split /=/, $fields;
> $bigData{$model[$i]}{$key} = "$value";
> $i++;
> }
why do i get the feeling when i look at this code that this p
11 matches
Mail list logo