in reply to Re: variable interpolation sans character interpolation
in thread variable interpolation sans character interpolation
The qr// operator creates a compiled re from the string it is given, and this compiled re can be passed in a variable. However, because it is no longer a string (it is a special variable type??) any backslashes it originally contained are no longer subject to interpolation even when a string which contains it as a variable is itself contained in another string, and so on. Is that about right?
I also think you are right about using an array instead of a hash, particularly because I may want to add more fields to it.
Thanks again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: variable interpolation sans character interpolation
by ikegami (Patriarch) on Oct 28, 2005 at 04:28 UTC |