sub contrivance { my $min = shift; my $max = some_function(); for ($min .. $max) { print "I think that $_ is a valid possibility\n"; } }