use strict; use warnings; my @args = sort { length($b) <=> length($a) } @ARGV; print "longest is $args[0], length = ", length($args[0]), "\n"; __END__ longest is ert, length = 3
See also: How do I compose an effective node title?
In reply to Re: Simple Perl, to get me started.
by toolic
in thread Simple Perl, to get me started.
by Lust69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |