Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: regexp: s/// vs s"""

by inman (Curate)
on Feb 21, 2006 at 14:42 UTC ( #531705=note: print w/replies, xml ) Need Help??


in reply to regexp: s/// vs s"""

The first character following the s is used as a delimiter. If the character is normally paired, a matching pair is used.

s/match/replace/; #The conventional way s|match|replace|; #Useful for urls that contain /s s(match)(replace); #matched braces

This gives you some flexibility with respect to the code that you are working with. Take care when using characters that are also used in regex notation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://531705]
help
Chatterbox?
[Lady_Aleena]: Ratazong, you didn't know about Cookies?
[Lady_Aleena]: shmem, jedikaiti would appreciate that. 8)
[shmem]: no doubt, Lady_Aleena - maybe others, too. A whole barrel just for cookies would be too much for one person alone.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-04-26 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.