in reply to How can I change the perl program involving if-elsif-else conditional to get correct result?

The module List::Util is probably included in your perl distribution.
use List::Util qw( max ); . . . print 'Largest: ', max( $a, $b, $c );
  • Comment on Re: How can I change the perl program involving if-elsif-else conditional to get correct result?
  • Download Code