Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    my @words = ("one", "two", "123456789012345", "three", "four", "sumofa
    +llnumbers", "five", "six", "seven", "eight");
    my @sorted_words = sort {length($b) <=> length($a)} @words;
    
  2. or download this
    print join(",", @longest_words);
    

Log In?
Username:
Password:

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

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

    No recent polls found