Perl: the Markov chain saw | |
PerlMonks |
Re: Re: The longest word ....by pg (Canon) |
on Nov 12, 2002 at 04:30 UTC ( [id://212194]=note: print w/replies, xml ) | Need Help?? |
There could be more than one longest words having the same length, you probably want all of them:
my @longest_words = grep (/.{$#sorted_words}/, @words);
In Section
Seekers of Perl Wisdom
|
|