Re: doubt with hash

2005-01-13 Thread Tor Hildrum
On Fri, 14 Jan 2005 12:09:03 +0530, Anish Kumar K. <[EMAIL PROTECTED]> wrote: > Hi All > > I have a hash say. %browserType in which assume there are values... > > %browserType=( > "IE"=>2, > "NETSCAPE"=>3, > "FIREFOX"=>5 > ); > > I need to calculate one morething say percentage utilisation for e

doubt with hash

2005-01-13 Thread Anish Kumar K.
Hi All I have a hash say. %browserType in which assume there are values... %browserType=( "IE"=>2, "NETSCAPE"=>3, "FIREFOX"=>5 ); I need to calculate one morething say percentage utilisation for each browser.. ie..If IE is 2 = the percentage is calculated as (2/(2+3+5))*100 NETSCAPE=(3/(