in reply to Re^2: Find the biggest number from three numbers
in thread Find the biggest number from three numbers
Don't use $a and $b :)
use List::Util qw( max ); ($a, $b, $c) = (3, 12, 42); print +(sort { $b <=> $a } $a, $b, $c)[0]; print max ($a, $b, $c);
These both work, but can you - as a perl beginner - still read it? Perl is so much fun due to TIMTOWTDI
|
|---|