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 hash to a scalar 
> >> variable?
> > 
> > A hash doesn't have a "first" key.  Which key do you really want?
> > 
> > 
> > John
> 

Hashes don't have root keys either;  all keys are equal in a hash.  And
all their values are equal too.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."
        Cross Time Cafe

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to