Here is my try
@a=qw(adddddd bcdef deed superlative); ($shortest)=sort{length($a)<=>length($b)}@a; print $shortest;
Regards,
Murugesan Kandasamy.
In reply to Re: Finding the Shortest Element in an Array
by murugu
in thread Finding the Shortest Element in an Array
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |