I want to count the occurrence of specific value in array, the array as below.
my @array = (-1.001, -7.032, -5.013, 8.412, -1.500, 3.412)
The expected result For value under zero count = 4
For value under minus 5 count = 2
How can I get it using Perl, Any Idea?