- or download this
$ perl -E 'my $x = "A(B"; $x =~ s/\(/</; say $x'
A<B
- or download this
$ perl -E 'my $x = "A(B"; $x =~ y/(/</; say $x'
A<B
- or download this
$ perl -E 'my $x = "A(B"; $x = join "<", split /\(/, $x; say $x'
A<B
- or download this
$ perl -E 'my $x = "A(B"; substr $x, index($x, "("), 1, "<"; say $x'
A<B