Re: hash increament

2008-06-20 Thread Rob Dixon
beast wrote: > > What is the reason this following works > $hours{$hour}->{count} + 1 > > but this not works? > $hours{$hour}->{count}++ > > > it actually part of this code: > > $hours{$hour} = { occur => $occur_utc, > delay => $hours{$hour}->{delay} + $delay,

Re: hash increament

2008-06-18 Thread Dr.Ruud
beast schreef: > What is the reason this following works > $hours{$hour}->{count} + 1 > > but this not works? > $hours{$hour}->{count}++ > > > it actually part of this code: > > $hours{$hour} = { occur => $occur_utc, > delay => $hours{$hour}->{delay} + $delay, >

hash increament

2008-06-18 Thread beast
Hi, What is the reason this following works $hours{$hour}->{count} + 1 but this not works? $hours{$hour}->{count}++ it actually part of this code: $hours{$hour} = { occur => $occur_utc, delay => $hours{$hour}->{delay} + $delay, count =>