in reply to RE: RE: RE: Re: Hash Internals
in thread Hash Internals

That's not adding a k-v pair. I'd said adding to front or back. Even adding to the FRONT is a bit edgy, since using unshift() a lot can be icky.

$_="goto+F.print+chop;\n=yhpaj";F1:eval

Replies are listed 'Best First'.
RE: RE: RE: RE: RE: Re: Hash Internals
by d_i_r_t_y (Monk) on Oct 25, 2000 at 07:48 UTC
    not like i'm trying to sound like i'm nit-picking, but how can the user 'add to the front or the back' when they are really just using a hash? the only hash operation which adds anything is the STORE, which should add to the 'end'.

    just asking now because i was thinking about writing a tie for a hash as a simple kind of cache which after X additions to the (hash) cache only keeps the last-added 100 or so (since the values in this case are large and slowly-constructed objects).

    d_i_r_t_y