in reply to max of N numbers?
Ah yes, the perennial "I want to do X without using way every sane programmer does X" question.
my @list = qw( 4 30 2 54 1 2 ); print "Which of these numbers is the largest:\n", join( "\n", @list ), + "\n"; chomp( my $max = <STDIN> );
See also the mechanical turk. For the saner answer, see max in List::Util.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |