Think about Loose Coupling | |
PerlMonks |
Re: Re: Answer: More than one way to do it???by slocate (Novice) |
on Dec 07, 2000 at 11:33 UTC ( [id://45455]=note: print w/replies, xml ) | Need Help?? |
This is correct. According to the Camel book, the right hand
side of a substitution (//) is considered to be outside of the
regex. So the "special" variable (i.e. \1) is treated as a
"normal" scalar variable thus it can be interpolated there
because this side functions as if it was a double quoted string.
In Section
Seekers of Perl Wisdom
|
|