Gidday from Downunder, Im writing the script to read the the contetns of a text file into a hash, the text file has two records
[EMAIL PROTECTED]|html [EMAIL PROTECTED]|txt My script is below open IN, "<$mailinglist"; while( my $record = <IN> ){ @data = split( /\|/, $record); $records{$data[0]} = $data[1]; } close IN; while(($k,$v)=each(%records)){ print"$k => $v<br>"; } all that gets stored in the hash is the last record how do I get all records stored in the hash please. Colin Johnstone Website Project Officer Corporate Website Unit Public Affairs Directorate ph 9561 8643 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]