And if you don't mind the (second) argument getting printed, another 3 chars less:perl -nlE'sub w{[sort/./g]}INIT{$w=w$_=pop}$w~~w&&say' ./dict.txt acer +t
perl -nlE'sub w{[sort/./g]}$w||=w$_=pop;$w~~w&&say' ./dict.txt acert
In reply to Re^3: Perl Golf idea
by JavaFan
in thread Perl Golf idea
by sweepy838
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |