[Omaha.pm] s(a)(AAA) -- wow

Hugh Jarce hjarce2001 at yahoo.com
Wed Jul 14 22:42:03 CDT 2004


Jay Hannah wrote:
> These work too:
>
> s[a][AAA]g
> s{a}{AAA}g
>
> What arcane crap *can't* you do in Perl?
 
Also, note that the replacement operand may have different
delimiters to the regex operand. So these work too:
 
s[a]/AAA/g
s<a>'AAA'g
 
When the replacement operand's delimiters are single quotes,
no variable interpolation is done.
 
Hugh
 

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20040714/ece59339/attachment.htm


More information about the Omaha-pm mailing list