Need help to calculate average value in hash

2004-10-19 Thread Pete Tong
Hi All, I have file: PHI: 15 CA: 32 NY: 14 PHI: 35 NY: 11 CA: 22 NY: 23 CA: 36 I need to put it into hash. Key – State, Value – Number (Average Value!!!) So in output I should have: PHI:25 CA:30 NY:16 - Do you Yahoo!? Yahoo! M

Re: Need help to calculate average value in hash

2004-10-19 Thread Gunnar Hjalmarsson
Pete Tong wrote: I have file: PHI: 15 CA: 32 NY: 14 PHI: 35 NY: 11 CA: 22 NY: 23 CA: 36 I need to put it into hash. Key – State, Value – Number (Average Value!!!) So in output I should have: PHI:25 CA:30 NY:16 Thanks for letting us know about your needs. Out of curiosity, when will you start the c

Re: Need help to calculate average value in hash

2004-10-20 Thread David le Blanc
On Wed, 20 Oct 2004 02:08:12 +0200, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Pete Tong wrote: > > I have file: > > > > PHI: 15 > > CA: 32 > > NY: 14 > > PHI: 35 > > NY: 11 > > CA: 22 > > NY: 23 > > CA: 36 > > > > I need to put it into hash. Key â State, Value â Number (Average Value!!!) > >

Re: Need help to calculate average value in hash

2004-10-20 Thread Gabor Urban
On Wed, 2004-10-20 at 01:57, Pete Tong wrote: > Hi All, > > > > I have file: > > Hi, show us some code fragments that seem not to work. Post well defined question. Gabaux -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]