How to search & increment a value in a .txt file loop : I have to search & increment certain data from .txt file. I could extact(print out) the data, but am not sure on how to update/increment it ?

> There is data on a line in the .txt which I want to increment by 15%
> in a loop. 
> +abc0 = 0.5 tg = 0.512 kjkj = 7543, (I want to increment the value beside abc0 in a loop, 15 % each time, write it to text file, run it &
> repeat.)


    open my $fh, "<" ,".....lib" or die "$!";
    
    for(my $i= 0; $i < 10; $i++) {
    while(my $line = <$fh>){ 
            if( my ($xyz0) = $line =~m/xyz0 = (\S+)/){
                  print $xyz0,"\n"; # this prints 0.005 
                  $new_value = $xyzo * 1.15; 
                  $xyz0 =~ s/$xyz0/$new_value/;}}}


