CC: | "Joe McMahon" <mcmahon [...] ibiblio.org> |
Subject: | Re: Tie::Hash::MultiValue question |
Date: | Tue, 29 Apr 2008 15:58:41 -0700 |
To: | bug-Tie-Hash-MultiValue [...] rt.cpan.org |
From: | Darin <d.t.rajan [...] ieee.org> |
Printing 'value' results in the array reference being printed.
On Wed, Apr 16, 2008 at 9:42 AM, Darin <d.t.rajan@ieee.org> wrote:
Show quoted text
> Cool- Thank you!
>
> -Darin
>
>
>
> On Tue, Apr 15, 2008 at 7:07 PM, Joe McMahon <mcmahon@ibiblio.org> wrote:
> >
> > On Apr 15, 2008, at 9:44 AM, Darin wrote:
> >
>
> > > I am using it of course to store multiple values per key. I would like
> > > to know how I can iterate over the hash to print out the key, value
> > > pairs, as in this example:
> > >
> > > tie %hash, 'Tie::Hash::MultiValue';
> > >
> > > ...
> > >
> > > while ( ($key, $value) = each %hash){
> > > print "$key => $value\n";
> > > }
> > >
> > > Doing this results in printing of the array reference for key and
> > > nothing for value.
> > >
> >
> > This sound like it might be a bug - I'll look into it.
> >
> > --- Joe M.
> >