in reply to Re^2: Perl 6 implementation of the following Perl 5 code
in thread Perl 6 implementation of the following Perl 5 code
If you make the commas stand out by putting them up front, it looks untidy, yes. As they say, the key is to play to Perl's strengths, not to its weaknesses.
And if you include unnecessary punctuation, it also looks untidy. This one seems to work fine:
use v6; say reverse .words for map *[1], sort map { [.words[*-1],$_] }, grep /SRC1/, lines;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl 6 implementation of the following Perl 5 code
by konnjuta (Acolyte) on May 28, 2013 at 07:23 UTC |
In Section
Seekers of Perl Wisdom