Re: flatfile to hash

2002-06-22 Thread Peter Scott
At 05:12 PM 6/22/02 -0400, zentara wrote: >On Sat, 22 Jun 2002 11:06:58 -0700, [EMAIL PROTECTED] (Peter Scott) wrote: > > > >Don't read the entire file into memory; just change the next line to > > > > while () { > > chomp; > > > >>foreach (@vs){ > >>($name,$value) = split(/=/,$

Re: flatfile to hash

2002-06-22 Thread zentara
On Sat, 22 Jun 2002 11:06:58 -0700, [EMAIL PROTECTED] (Peter Scott) wrote: > >Don't read the entire file into memory; just change the next line to > > while () { > chomp; > >>foreach (@vs){ >>($name,$value) = split(/=/,$_); >>$sigs{$name}=$value;} > >That code is clear enough (as

Re: flatfile to hash

2002-06-22 Thread Peter Scott
At 01:57 PM 6/22/02 -0400, zentara wrote: >Hi, >I'm looking for some clever tricks to get a file >into hash values. > >The file looks like this. > >10 past 3 (B)=ec020e1ff3a4b82125061fbab300cd21 >10 past 3 (C)=b840008ed8a11300b106d3e02d00088e >100-Years=fe3a558bec50817e0400c0730c2ea147 >1024-PrScr

Re: flatfile to hash

2002-06-22 Thread David T-G
zentara -- ...and then zentara said... % % Hi, Hello! % I'm looking for some clever tricks to get a file % into hash values. % % The file looks like this. % % 10 past 3 (B)=ec020e1ff3a4b82125061fbab300cd21 % 10 past 3 (C)=b840008ed8a11300b106d3e02d00088e ... % % I've been using: % % ...