in reply to populate a hash, with limits set by user?
print "What's the limit?: " chomp($limit = <STDIN>); foreach (1 .. $limit) { print "enter variable $_ : "; chomp($somehash{$_} = <STDIN>); } [download]