in reply to Extracting the number in a file and get the value and output to the other file
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;
|
|---|