in reply to Re^8: Sorting text-number values
in thread Sorting text-number values

Are you aware what this line means?

use 5.010;

This enables features from Perl 5.10, but works on any version of Perl later than that.

As Perl 5.20 is a later version, use 5.010; has little effect there beyond enabling the say keyword.

Replies are listed 'Best First'.
Re^10: Sorting text-number values
by merrymonk (Hermit) on Nov 30, 2016 at 12:04 UTC
    Thanks for that and all your other contributions this morning. It is not quite what I thought.

    However, johngg's pointer to storing the sorted data means that say is no longer required and the problem goes away.

    I think my overall problem was that I do not understand what 'say' does. So far I have failed to find an explanation but I will continue my search!

      "I think my overall problem was that I do not understand what 'say' does. So far I have failed to find an explanation but I will continue my search!"

      Did you read the docs: say? Let me know if you need further explanation or a suggestion for improving this entry.