[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-porters
Subject: Re: [perl #34470] Tied hash - hash slice - bug?
From: David Nicol <davidnicol () gmail ! com>
Date: 2005-03-29 23:30:27
Message-ID: 934f64a2050329153049a64ad5 () mail ! gmail ! com
[Download RAW message or body]
> This means that the store routine is only called once, even though it should be
> called for each element when a hash-slice is used.
> Doing the same thing on a 'normal' hash will create the 3 keys, where the first
> 2 have a value of undef, and the last one a value of 1
There is only one store, but there may be three fetches. The
autovivification happens
at fetch time.
post-increment appears to increment the last element of hash slices
but not against
arrays in general. Is this by design or laxity?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic