Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: The longest word ....

by dingus (Friar)
on Nov 12, 2002 at 07:24 UTC ( [id://212213]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub longest_words {
        my %W;
        push (@{$W{length($_)}}, $_) for (split /\s+/, join ' ', @_);
        return @{$W{ (sort{$b <=>$a} keys %W)[0]} };
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://212213]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found