in reply to Re^2: Creating regex from arrays (oops)
in thread Creating regex from arrays
When actually testing this, I found that my initial solution was flawed in another way: the initial pipe needs to be escaped as well! Does any monk have an idea why that is necessary? Liz$tomatch = join '|', map {local $_ = $_; s#\|#\\|#s; $_} @results;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating regex from arrays (oops)
by tye (Sage) on Jul 29, 2003 at 23:19 UTC | |
by liz (Monsignor) on Jul 30, 2003 at 07:22 UTC |