RE: Read a file into a Hash

2002-06-04 Thread Janek Schleicher
Ned Cunningham wrote at Tue, 04 Jun 2002 20:16:46 +0200: > It's a pipe delimited txt file. > Examples always help us. I assume your file looks like key1|value1 key2|value2 ... keyn|valuen Then you should try: open FILE, "<$filename" or die "Can't open $filename: $!"; my %hash = map {chomp; sp

RE: Read a file into a Hash

2002-06-04 Thread Daniel Kelley
Tuesday, June 04, 2002 2:15 PM > To: '[EMAIL PROTECTED]' > Subject:RE: Read a file into a Hash > > how is the file laid out? > > -Original Message- > From: Ned Cunningham [mailto:[EM

RE: Read a file into a Hash

2002-06-04 Thread Ned Cunningham
It's a pipe delimited txt file. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 2:15 PM To: '[EMAIL PROTECTED]' Subject: RE: Read a f

RE: Read a file into a Hash

2002-06-04 Thread Kipp, James
how is the file laid out? -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 2:02 PM To: '[EMAIL PROTECTED]' Subject: Read a file into a Hash I am trying to traverse a file and match the key to a key in a second file... How do I put the file