in reply to Anagram finder

You're bitten by newlines.

print join "\n", grep {chomp; $a eq join "", sort split "", lc} <DICT> +;

Jeroen
"We are not alone"(FZ)
And yes, I tested it. Is not bothered by the sub-grief, apparently

Replies are listed 'Best First'.
Re: Re: Anagram finder
by pchou (Novice) on Apr 24, 2001 at 22:12 UTC
    Thank you all very much. I'm still pretty new to perl, and I guess I got confused with "chop" and "chomp" which giving me problems (and why I didn't include it).

    Paul