Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I came across this in a perl oneliners list:
for finding anagram is a given word list.perl -lne '$x{1,sort/./g}.=$_}{/./&& print for %x'
How does it work?
The sort syntax is nothing like I have read.
Edit, BazB: formatted.
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort syntax
by hardburn (Abbot) on Oct 16, 2003 at 18:16 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |