in reply to Re: Hash of Arrays
in thread Hash of Arrays

My method doesn't store the value directly in the hash. It pushes it onto the anonymous array referenced by the value of the appropriate hash element.


Dave


"If I had my life to do over again, I'd be a plumber." -- Albert Einstein

Replies are listed 'Best First'.
Re: Hash of Arrays
by jonadab (Parson) on Oct 12, 2003 at 19:51 UTC

    Umm, quite so. I misread your code. Sorry about that.


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/