codethatUsesFoo (getValue()) for 1 .. $a_huge_value;