in reply to Re^2: Perl Golf idea
in thread Perl Golf idea
One character less:
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 Section
Seekers of Perl Wisdom