Ozgur Genc wrote: > > Hi All, Hello,
> Does anyone help me about how I can find the maximum and minumum element
> of an array?
my ( $min, $max );
for ( @array ) {
$min = ( $min, $_ )[ $min >= $_ ];
$max = ( $max, $_ )[ $max <= $_ ];
}
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
