[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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.