RE: picking numbers out of a file and operating on them

2002-12-16 Thread Aman Thind
-- This should do the job. Please adapt it to your liking. -aman. -Original Message- From: Nandita Mullapudi [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: picking numbers out of a file and operating on them How does

picking numbers out of a file and operating on them (fwd)

2002-12-16 Thread Nandita Mullapudi
How does one tell perl to perform mathematical operations? I have a file with a series of items like this: >BLAH1 Length = 500 Identities = 20/100. >BLAH2 Length = 400 Identities = 30/70 For each item called BLAH, I want to pick the denominator in Identites and divide by Length and calculate per

picking numbers out of a file and operating on them

2002-12-16 Thread Nandita Mullapudi
How does one tell perl to perform mathematical operations? I have a file with a series of items like this: >BLAH1 Length = 500 Identities = 20/100. >BLAH2 Length = 400 Identities = 30/70 For each item called BLAH, I want to pick the denominator in Identites and divide by Length and calculate per