It's not so much being succinct, although clean code often is. The key bits are:
although upon reflection I'd change @lists = grep{scalar @$_} @lists; to splice @lists, $smallest, 1 if !@{$lists[$smallest]};.
In reply to Re^3: Spliting array into nested sequential arrays
by GrandFather
in thread Spliting array into nested sequential arrays
by Hameed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |