Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: substituting 1 escaped character for another

by kcott (Archbishop)
on Jul 27, 2018 at 11:24 UTC ( [id://1219377]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1219377]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found