perlで最大値を取得したい
use Statistices::Lite qw(max);
my $max = max @list;
でできる。はず。
Can't locate Statistics/Lite.pm in @INC
と言われる場合は
use List::Util qw(max);
$max = max @list;
でやってみよう。
use Statistices::Lite qw(max);
my $max = max @list;
でできる。はず。
Can't locate Statistics/Lite.pm in @INC
と言われる場合は
use List::Util qw(max);
$max = max @list;
でやってみよう。