| Issue 48: | gethashref() | |
| 1 person starred this issue and may be notified of changes. | Back to list |
If have:
my $lookup = $resultset->hashmap_multi( 'k' );
my @info = map { $_->gethash( 'a b c' ) } @{$lookup->{$k}};
then get @info as a flattened array. so seems one must:
my $lookup = $resultset->hashmap_multi( 'k' );
my @info = map { { $_->gethash( 'a b c' ) } } @{$lookup->{$k}};
to cue the gethash() return value.
therefore, consider a convenience wrapper gethashref()
so client code remains clean.
Apr 14, 2010
#1
funnyso...@gmail.com
Labels:
-Priority-Medium Priority-Low
|