in reply to Re^2: Problem with Pattern matching and substitution using variables
in thread Problem with Pattern matching and substitution using variables
Otherwise, if the PATTERN contains a $ that looks like a variable rather than an end-of-string test, the variable will be interpolated into the pattern at run-time.Essentially, with no switch, the variable is interpolated following qq rules. With one e, the value between the slashes is evaluated; all that lies between the slashes is the scalar, so it evaluates equivalently. With two es, the scalar is evaluated into the string value, and then that string value is passed through eval.
...
e Evaluate the right side as an expression.
ee Evaluate the right side as a string then eval the result.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem with Pattern matching and substitution using variables
by shtihskar (Initiate) on Sep 12, 2011 at 08:27 UTC |