in reply to How can I change the perl program involving if-elsif-else conditional to get correct result?
use List::Util qw( max ); . . . print 'Largest: ', max( $a, $b, $c ); [download]