in reply to Re^4: stack array to array of arrays
in thread stack array to array of arrays

> It also breaks down on the same edge ($len = 0);

No thats another edge! But what exactly is $len=0 supposed to mean?

update

> It may be worth it to just stay with. ...

If I were you I would pass len as first parameter.

> My problem is that it requires a lot of extra includes...

feature is not an include but a pragma like strict.

And IMHO List::MoreUtils should be put into core... (and extended)

Cheers Rolf

( addicted to the Perl Programming Language)