in reply to Re: Re: Re: slurping into a substring'ed' array
in thread slurping into a substring'ed' array
If you absolutely have to have it in one line, provide a function called unique() and do something like:
sub unique { my %x; @x{@_} = @_; values %x } my @sorted = sort { $a cmp $b } unique map { substr($_, 0, 1 ) } @original;
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
|
|---|