Sum of Numeric values in perl : Im new to PERL scripting and now working on a program to improve my knowledge in perl. For example i have a input file which has data in pattern date, transaction ID,name of website,amount), im trying here to get sum of all transactions that are made in www.example.com. Since there are two numeric fields (transaction ID & amount) <br/> im unable to pick using the below command 

$var =~ m/(\d+)/

Here is the sample input file.

`26/06/2018 12890765 www.example.com 986.00`

`31/08/2018 17464946 www.other.com 7627.00`

`1/05/2018  65472345 www.example.com 14.00`

Now help me how can i pick only 986 or 7627 or 14 from the file and 
So here if run a code with www.example.com as argument i should get sum as 1000.
