Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Finding the Shortest Element in an Array

by murugu (Curate)
on Oct 14, 2005 at 03:01 UTC ( [id://500111]=note: print w/replies, xml ) Need Help??


in reply to Finding the Shortest Element in an Array

Here is my try

@a=qw(adddddd bcdef deed superlative); ($shortest)=sort{length($a)<=>length($b)}@a; print $shortest;

Regards,
Murugesan Kandasamy.

Log In?
Username:
Password:

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

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

    No recent polls found