|
|||||||||
# any compared with any
my @first_set = qw(1 1 1 1 1 1 1 1 1 1 1 1 1 1);
my @new_set = qw(1 2 1 1 1 1 1 1 1);
if (any(@first_set) != any(@new_set)) {
"a fluctuation in the readings has been detected".say;
}
# any compared with any - example 2
my @first_set = qw(1 1);
my @new_set = qw(1 1.4 1 1 1 1 1 1 8);
if ( (abs(any(@first_set) - any(@new_set))) > 0.5) {
"a variation in the readings is too large".say;
}
|
|||||||||
|
|||||||||