|
- sorted imports, with Moo and MooX::StrictConstructor at the top because they
change the behavior of the code.
- removed 'scalar' when comparing an array to an integer as it isn't required.
- adjusted multi-line first { } to single line since it still fits and perltidy
makes it look ugly.
- store each 'result' hash in a $result variable, again to make perltidy format
better.
- change use of 'unshift ARRAY' to 'push ARRAY' and reverse().
The later performs fewer mallocs (push is much more effficient than unshift).
Please check if this logic is right.
|