> -----Original Message----- > From: Noah [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2008 13:23 > To: John W. Krahn > Cc: Perl Beginners > Subject: Re: store first key of a hash to scalar > > okay that basically answers my question. I will have to > figure out to > define a key that is the root key. > You can have various key combinations: $hash->{key1}{key2}..... where key1 could be the root portion and key2 a subset, etc
Just remember you need to be able to get your head around what you do. You can even have arrays associated with the hash data, so it can be very complex, but make sure that you know what you are after or be able to ask the questions that will give you a good understanding of what you need. Wags ;) David R Wagner Senior Programmer Analyst FedEx Freight 1.408.323.4225x2224 TEL 1.408.323.4449 FAX http://fedex.com/us > > John W. Krahn wrote: > > Noah wrote: > >> Hi there, > > > > Hello, > > > >> What is the easiest way to store the first key of a hash > to a scalar > >> variable? > > > > A hash doesn't have a "first" key. Which key do you really want? > > > > > > John > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > ********************************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ********************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/