in reply to Re^2: Spliting array into nested sequential arrays
in thread Spliting array into nested sequential arrays

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]};.

Perl is the programming world's equivalent of English

Replies are listed 'Best First'.
Re^4: Spliting array into nested sequential arrays
by boftx (Deacon) on Oct 29, 2014 at 04:00 UTC

    And to add just a little to what GrandFather said, keep in mind that readability = maintainability in most cases. If hired, you will be writing code 5 years from now that someone just like yourself now will have to maintain. So the goal is to come up with reasonable solutions that will show knowledge of the tools while at the same time showing consideration of the work environment.

    You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.