evalEmpire / perl5i

A single module to fix as much of Perl 5 as possible in one go
http://search.cpan.org/perldoc?perl5i
Other
156 stars 42 forks source link

hmap is not autoboxed #270

Closed daxim closed 11 years ago

daxim commented 11 years ago
$ perl5i -e'+{0..9}->each'
eech is deprecated, use hmap instead at …/perl5i/2/HASH.pm line 15.
eich is deprecated, you should use iterator() instead at …/perl5i/2/HASH.pm line 15.
argument is not a reference at …/x86_64-linux-thread-multi-ld/Hash/StoredIterator.pm line 112.

$ perl5i -e'+{0..9}->hmap'
Can't call method "hmap" on unblessed reference at -e line 1.
exodist commented 11 years ago

oops, this is a trivial thing to fix, within HASH.pm the import needs to be updated (and the min versions of Hash::StoredIterator required for perl5i needs to be bumped) also update all the calls to eich and eech inside HASH.pm to use the new functions.

I can't do this now, about to start work. But I will try to get to it tonight.