question: text substitution using Perl
Bill Ricker
bill.n1vux at gmail.com
Tue Oct 24 20:44:22 EDT 2006
On 10/23/06, Steven W. Orr <steveo at syslang.net> wrote:
> The difference between single quotes and double quotes is strictly
> whether variable interpolation occurs.
Most importantly but not strictly true. The other difference between '
and " is in escape sequence quoting. Only \ and ' are quoted by \
inside 's.
Note that q{} and qq{} are aliases for ' ' and " ", and you can use
your choice of bracketing characters.
http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators
--
Bill
n1vux at arrl.net bill.n1vux at gmail.com
Boston Perl Mongers, http://boston.pm.org 2nd Tuesdays @ MIT
More information about the gnhlug-discuss
mailing list