Re: store first key of a hash to scalar

2008-09-10 Thread Mr. Shawn H. Corey
On Wed, 2008-09-10 at 13:23 -0700, Noah wrote: > okay that basically answers my question. I will have to figure out to > define a key that is the root key. > > > John W. Krahn wrote: > > Noah wrote: > >> Hi there, > > > > Hello, > > > >> What is the easiest way to store the first key of a has

Re: store first key of a hash to scalar

2008-09-10 Thread Rob Dixon
Noah wrote: > John W. Krahn wrote: >> Noah wrote: >>> >>> 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? > > okay that basically answers my question. I will have to figure out to > define

RE: store first key of a hash to scalar

2008-09-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -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 >

Re: store first key of a hash to scalar

2008-09-10 Thread Noah
okay that basically answers my question. I will have to figure out to define a key that is the root key. 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

Re: store first key of a hash to scalar

2008-09-10 Thread John W. Krahn
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 -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low co

RE: store first key of a hash to scalar

2008-09-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Noah [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2008 13:10 > To: Perl Beginners > Subject: store first key of a hash to scalar > > Hi there, > > What is the easiest way to store the first key of a h

store first key of a hash to scalar

2008-09-10 Thread Noah
Hi there, What is the easiest way to store the first key of a hash to a scalar variable? Cheers, Noah -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/