Re: Hash of Hashes to set up form

2001-12-11 Thread Marcus Willemsen
>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/ > >_

Re: Hash of Hashes to set up form

2001-12-10 Thread Curtis Poe
--- 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 => {

Hash of Hashes to set up form

2001-12-10 Thread Marcus Willemsen
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' =>

Re: Hash of hashes

2001-07-31 Thread fliptop
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 ha

RE: Hash of hashes

2001-07-31 Thread Camilo Gonzalez
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

Re: Hash of hashes

2001-07-30 Thread fliptop
[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]

RE: Hash of hashes

2001-07-30 Thread Peter Cornelius
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

Re: Hash of hashes

2001-07-30 Thread fliptop
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 PROTECT

RE: Hash of hashes

2001-07-30 Thread Camilo Gonzalez
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 /=/,

RE: Hash of hashes

2001-07-30 Thread Camilo Gonzalez
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

RE: Hash of hashes

2001-07-30 Thread Peter Cornelius
>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

Re: Hash of hashes

2001-07-30 Thread fliptop
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

Hash of hashes

2001-07-30 Thread Camilo Gonzalez
Fellow PERLians, Thanks so much for all your help in advance. I have a rather vexing problem. I'm trying to construct a hash of hashes from data sent to a script from a form. I've already parsed the arrays @data and @model to the point I want them. This is the code tha