--- "Brett W. McCoy" <[EMAIL PROTECTED]> wrote:
> On Mon, 18 Jun 2001, David Gilden wrote:
> 
> > I am having trouble understanding just what the following does,
> > and how to you use it:
> >
> >  $hash{$_}++
> >
> >  i.e. are we increment the value or the key?
> 
> The value.  If you wanted to increment the key, you would say
> "$hash{$key++}".

Wait a sec, brain cramp....
Wouldn't that:
  1) just access $hash{$key}
  2) increment $key
  3) add $hash{$key + 1}

???

=====
print "Just another Perl Hacker\n"; # edited for readability =o)
=============================================================
Real friends are those whom, when you inconvenience them, are bothered less by it than 
you are. -- me. =o) 
=============================================================
"There are trivial truths and there are great Truths.
 The opposite of a trival truth is obviously false.
 The opposite of a great Truth is also true."  -- Neils Bohr

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

Reply via email to