# from Terrence Brannon
# on Monday 27 February 2006 02:19 am:
>Just FYI, it looks a bit different than what the reform() function in
>Array::Reform does -
Heh. That's actually a prime example of why I needed this method in the
chain processing, but yes I decided to change the name to dice()
use list qw(L);
use Array::Reform qw(reform);
my $refs = L("a".."m")->map(sub {uc})->dice(sub {reform(3, @_)});
print $refs->map(sub {join("|", @$_)})->
l_unshift("diced:")->join("\n "), "\n";
> the author of that module is not very responsive to bug reports, so
> maybe we could add in that reform() functionality and name this
> something else (no idea what)
Strange, my cpan doesn't see it. Maybe the mirror, but the dist seems
odd.
As far as adding the functionality, I prefer that list.pm just provides
interface and generic wrappers for applying external functionality.
That means you can still use Array::Reform::reform or whatever in or
out of this context.
--Eric
--
Don't worry about what anybody else is going to do. The best way to
predict the future is to invent it.
--Alan Kay
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------