in reply to stripping parentheses from only one line
What exactly does $text contain? And where is that URL that you want the ( and ) removed from in $text?
If you just want to remove the first ( and first ) in $text, try:
$text =~ s/\(//; $text =~ s/\)//;
|
|---|