good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: one liner to print out sorted list of wordby dakkar (Hermit) |
on Mar 26, 2003 at 18:37 UTC ( [id://246038]=note: print w/replies, xml ) | Need Help?? |
That expanded becomes:
Since hash keys are unique, it does what you need. On the command-line, without using Perl, you do it this way:
The two trs perform the "cleaning" and "lowercasing" in a locale-dependent fashion. To have the same with the above Perl one-liner, add a -Mlocale before the -ne -- dakkar - Mobilis in mobile
In Section
Seekers of Perl Wisdom
|
|