Data-Iter
view release on metacpan or search on metacpan
lib/Data/Iter.pm view on Meta::CPAN
foreach ( iter \%numbers )
{
$str3.=key;
}
println $str3;
[Note] "::sort_wild" refers to the 'main::' namespace, where this snippet was placed.
=head1 HIGHER FUNCTIONS
=head2 $hash_ref = transform_array_to_hash( $array_ref )
$array_ref =
[
tcf1 => 28.44
tcf1 => 28.13
tcf3 => 26.92
tcf3 => 26.09
gapdh => 17.08
gapdh => 16.1
];
Then a call
transform_array_to_hash( $array_ref )
will return this hash
{
gapdh => ["17.08", "16.1"],
tcf1 => ["28.44", "28.13"],
tcf3 => ["26.92", "26.09"],
}
=head1 BUGS
Not get(counter+1), but get(1+counter) will function correctly (under perl 5.6.0).
And get(counter - 1) does not work.
=head1 FUTURE
Add some decent $Data::Iter::options
=over 4
=item *
counter base value (for example start from 1 instead of 0).
=back
=head1 EXPORT
none by default.
'all' => (iter counter COUNTER LAST_COUNTER value VALUE key KEY get GET getnext GETNEXT)
=head1 PITFALLS
You should use L<iter()> only on 'quite' static structures. Since the static precalculated iterations
are not tied to the original data structure. So its changes will not be updated.
=head1 AUTHOR
Murat Uenalan, E<lt>muenalan@cpan.orgE<gt>
=head1 SEE ALSO
L<Class::Iter>, L<Tie::Array::Iterable>, L<Object::Data::Iterate>
=cut
( run in 0.722 second using v1.01-cache-2.11-cpan-71847e10f99 )