in reply to Extracting the number in a file and get the value and output to the other file

If all you're trying to do is delete all parentheses from a line, you can use a character class (perlre):
use warnings; use strict; while (<DATA>) { s/[()]//g; print; } __DATA__ PP: (899040) Jane Smith

prints:

PP: 899040 Jane Smith

Update: similarly, you can use tr:

tr/()//d;