Re: print hash

2002-04-23 Thread Sudarsan Raghavan
[EMAIL PROTECTED] wrote: > Hello everybody, > my code below should read in data from a file info.txt into a hash, the sub > print_hash should print all hash-elements. actually it only prints the last > key-value-pair. Does anybody see the mistake?Thank you for your help!!! > The scripts runs

print hash

2002-04-23 Thread Stefan.Haberer
Hello everybody, my code below should read in data from a file info.txt into a hash, the sub print_hash should print all hash-elements. actually it only prints the last key-value-pair. Does anybody see the mistake?Thank you for your help!!! Greetings Habi use strict; my %hash=(