!#/usr/bin/perl @number = qw(1 2 3 4 5 10 11 12 13 14); print "The values within the array are @number\n\n"; print "We will now print the square root of each number in the array as long as it falls between the range of 100-200 \n\n"; foreach $num (@number) { $sq = $num * $num; if ($sq >= 100 && $sq <= 200) { @values = (); push(@values, $sq); } } print "Obtaining square values using foreach loop: @values\n";