http://www.perlmonks.org?node_id=1045891


in reply to Re^5: Sorting challenge
in thread Sorting challenge

Why not just

<>; print sort { $a <=> $b } <>;

Replies are listed 'Best First'.
Re^7: Sorting challenge
by davido (Cardinal) on Jul 23, 2013 at 15:37 UTC

    Because he is supposed to limit input to a user-specified number. By ignoring that specific number, the test harness could throw in extra inputs to verify he's actually checking.


    Dave