in reply to Re: hashes
in thread hashes

The thing is, if you know which keys you want to process, and you want them in a specific order, there is no reason to use keys in the first place. Just give the keys in an array, as others have suggested, and index into the hash using them. keys is useful for getting all the keys in a hash, precisely so that you don't have to know their values in advance.

--ZZamboni

Replies are listed 'Best First'.
RE: RE: Re: hashes
by jrsmith (Pilgrim) on May 31, 2000 at 22:11 UTC
    yeah i realize that now.. keys isn't really useful here.. but hey i wrote this script after maybe 2 or 3 weeks of teaching myself perl and now having had 2 whole months of experience i actually have learned a few things.. thanx :)