in reply to Re: reinterpolation of regexp (and strings?)
in thread reinterpolation of regexp (and strings?)
Tricky. I don't think you can do it without the eval. Unless the /ee option does the trick as ikegami suggests.
s/.../.../ee is short for s/.../eval .../e, so that "unless" is not an exception.
Your suggestion of re-interpolation sounds nice but is probably very tricky to implement.
It's not possible since interpolation involved executing arbitrary code. Maybe a limited form of interpolation? That would be possible and useful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reinterpolation of regexp (and strings?)
by massa (Hermit) on Jul 23, 2008 at 09:30 UTC | |
by ikegami (Patriarch) on Jul 23, 2008 at 18:38 UTC |