outputs: hi.print my $shortest = ( sort { length($a) <=> length($b) } qw( hello su +perduper hi ) )[0];
:)
In reply to Re: Finding the Shortest Element in an Array
by tphyahoo
in thread Finding the Shortest Element in an Array
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |