develooper Front page | perl.beginners | Postings from March 2002

Seach around word text - display totals only!

Thread Next
From:
Bruce Ambraal
Date:
March 19, 2002 07:10
Subject:
Seach around word text - display totals only!
Message ID:
sc97703c.093@cct.org.za


An input data file looks like this: (see below) 

Description:  financial amount
Shoes:         $110
Car:              $3,100
Rates:          $0,50

I want to add the total of amount.
Also want to add all the totals containing an "s" discription.

My problem is basically 
Searching arround the word text to display the total only.

Certainly I know how to go about adding  the totals.





Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About