Theiling Online    Sitemap    Conlang Mailing List HQ   

lHow to do a reverse word list in Perl

From:Benct Philip Jonsson <bpjonsson@...>
Date:Friday, October 27, 2006, 10:05
#!/usr/bin/perl -w

foreach $wort (sort {reverse($a) cmp reverse($b)} <STDIN>) {
	write;
}

format =
@>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$wort
.
__END__

Found it at
<http://userpage.fu-berlin.de/~corff/perl/Beispiele/maketongoruu.pl>
and just found it beautiful! :-)
--


/BP 8^)>
--
Benct Philip Jonsson -- melroch at melroch dot se

    a shprakh iz a dialekt mit an armey un flot

                                 (Max Weinreich)

Reply

Mark Reed <markjreed@...>