Re: Big hash question.

2002-11-20 Thread David Zhuo
Mark, A couple things: 1. if you have something like 099, Perl thinks that you mean the Octal value of 99. The leading 0 makes Perl think you mean Octal instead of digit. For example: my $i = 99; #-- means the value 99 my $j = 099; #-- means the value 99 in Octal Now, since the Octal number sy

Re: Big hash question.

2002-11-20 Thread mark
Thanks David, this works in the form that you gave me. However, I am butchering it up to try and see if it will work with all the values I have and I run into this error. Illegal octal digit '9' at noname.pl line 10, at end of line I get the impression that perl is interpreting one of my zips as

Re: Big hash question.

2002-11-19 Thread david
Mark wrote: > > I want to be able to determine what zone a zip code falls in from a user > input. Once I write the hash, the data contained within it will remain > unchanged throughout the script except maybe for the occasional update if > things change. > > I am just unsure of which approach w

Re: Big hash question.

2002-11-19 Thread wiggins
On Tue, 19 Nov 2002 11:41:09 -0500, "mark" <[EMAIL PROTECTED]> wrote: > > I want to be able to determine what zone a zip code falls in from a user > input. Once I write the hash, the data contained within it will remain > unchanged throughout the

Re: Big hash question.

2002-11-19 Thread wiggins
On Tue, 19 Nov 2002 11:41:09 -0500, "mark" <[EMAIL PROTECTED]> wrote: > > > A really good hash tutorial would be of excellent help if anyone can guide > me to an online one. Bare in mind that I am a novice. :-) > This should get you started:

Re: Big hash question.

2002-11-19 Thread mark
I want to be able to determine what zone a zip code falls in from a user input. Once I write the hash, the data contained within it will remain unchanged throughout the script except maybe for the occasional update if things change. I am just unsure of which approach would be the best or if I ha

Re: Big hash question.

2002-11-19 Thread Jeff 'japhy' Pinyan
On Nov 18, mark said: >Should I list zones as the name component with zips as a list of values and >try to work through the values to establish a zip's zone identity. > >%zone={ >one => [370,422..430,476,490..500] >two=> [200..232,388] >Or should list all the possible zips as the name component w

Re: Big hash question.

2002-11-19 Thread mark
An equally valuable answer to my question would be a good online tutorial about using perl hashs inside out. I haven't found that yet. Most of the stuff I find in the documentation at perldoc are brief and lack any real indepth discussion of the number of ways to use a hash. Also, do the archive

Big hash question.

2002-11-18 Thread mark
Hi, I am trying to make hash of delivery zones that allows me to maintain a record of a zone for every postal code based on the first three digits of each zip. Being new to perl I have a few questions about the logical approach. Should I list zones as the name component with zips as a list of va