Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: The longest word ....

by sauoq (Abbot)
on Nov 12, 2002 at 03:59 UTC ( [id://212192]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub longest_words {
        my @W = sort { length($b) <=> length($a) } $_[0] =~ /\b(\w+)\b/g;
        grep length == length($W[0]), @W;
    }
    
  2. or download this
    sub longest_words {
    my@W=sort{length($b)<=>length($a)}$_[0]=~/(\w+)/g;grep length==length(
    +$W[0]),@W
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found