Re: I need sorting help

[email protected] (Ralph Mellor)
Newsgroups perl.perl6.users
Message-ID <CAPLR5SeDhO9tL5Sd5ENJhMcnXfjAVZGAVY=4_bq8xq0rwEWkGw@mail.gmail.com>
> @Sorted_List .= sort: *.match: / \d+ /;
> ...
> @Sorted_List .= sort: +*.match: / \d+ /;

Or perhaps easier to understand:

@Sorted_List .= sort: {m/ \d+ /.Str}
vs
@Sorted_List .= sort: {m/ \d+ /.Int}

love, raiph
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.