I want to add the following perl command in my bash script please advice
how to change (reduce by one ) the last number that start with "+" character in file with perl ?
Example of original file ( before run the perl command )
more file
432423
53454
+535
343
45
+1000
example of requested output file ( after run the perl command )
more file
432423
53454
+535
343
45
+999