Christiane Nerz wrote: > > Hi! Hello,
> If I want to print out every value of a hash, what's wrong with doing it > like that: > > foreach (keys %hash) { > print $hash{$_}; > print "\n";} Nothing wrong with that but if you just want the values then use values() instead of keys(). foreach ( values %hash ) { print "$_\n";} > Why do I only get one value??? You must only have one key/value entry in the hash. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]