RE: Validating Array ref element in a hash of arrays

2001-09-25 Thread Kipp, James
> > > > > > But you get to populate %_default, right? So you can make > > > sure that the > > > keys are uppercase. I don't understand why you do this tr. > >> >The user will not populate the %_default. > > Right, that's what I meant, you're populating it. So I don't > see that you > need t

RE: Validating Array ref element in a hash of arrays

2001-09-25 Thread Peter Scott
At 09:06 AM 9/25/01 -0400, Kipp, James wrote: > > > > > > > >foreach my $attr ( keys %_default ) { > > > my ($argname) = ($attr =~ tr/a-z/A-Z/); # make sure key is > > >uppercase(like FILE) > > > > But you get to populate %_default, right? So you can make > > sure that the > > keys are u

RE: Validating Array ref element in a hash of arrays

2001-09-25 Thread Kipp, James
> > > > >foreach my $attr ( keys %_default ) { > > my ($argname) = ($attr =~ tr/a-z/A-Z/); # make sure key is > >uppercase(like FILE) > > But you get to populate %_default, right? So you can make > sure that the > keys are uppercase. I don't understand why you do this tr. The user

Re: Validating Array ref element in a hash of arrays

2001-09-24 Thread Peter Scott
At 05:04 PM 9/24/01 -0400, Kipp, James wrote: >Hi > >I am the processing of writing a simple module and my brain just froze. >I am trying to valide data that is being passed to the object constructor >to make sure the arguments are acceptible. The args are being passed as >named arguments. >-- >#

Validating Array ref element in a hash of arrays

2001-09-24 Thread Kipp, James
Hi I am the processing of writing a simple module and my brain just froze. I am trying to valide data that is being passed to the object constructor to make sure the arguments are acceptible. The args are being passed as named arguments. -- # hash of default or allowed data, my %_default = (