can anyone give me some help on a perl program to change a file of mine.
The string is:
$_ = "from ''alam' (481) or possibly (in the sense of dumbness);
solitary; Ulam, the (6155) name of two Soldiers;--Ulam."
Where each line is $_
I'm trying to substitute a hyperlink for each NUMBER that is in
parenthesis only, while not touching the words in parenthesis or any other
numbers.
For example, I want to change (481) in the line above to
(<href="mypage.php?481">481</a>) and (6155) to
(<href="mypage.php?6155">6155</a>) and any
others without changing anything in (in the sense of dumbness).
Doing the same thing with each line in a file. Should I use a substitution?
Can anyone show me some code to accomplish this. Thanks.