To see if the shell does interpolation, use B::Deparse, ex perl -MO=Deparse ...D:\>perl $bar = 1; $_ = 123; s/$bar/bar said $bar -/; print __END__ bar said 1 -23 D:\> D:\> D:\>perl $bar = 1; $_ = 123; s'$bar'bar said $bar -'; print __END__ 123 D:\>perl $bar = 1; $_ = 123; s'1'bar said $bar -'; print __END__ bar said $bar -23 D:\>
In reply to Re: Choosing regex delimiters
by Anonymous Monk
in thread Choosing regex delimiters
by xyzzy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |