Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still have this that I wrote years ago:

    for(<>){chop;$s{join'',sort split'',lc}.=" $_"}for(sort%s){/. /&&print"$_\n"}
Feed it a wordlist and it spews out anagrams.


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: