in reply to Problems with a regex?
Change if (grep(/^$stack$/, @stack)) { to if (grep(/^\Q$stack$/, @stack)) {.
perlre for details.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with a regex?
by hbm (Hermit) on Aug 14, 2012 at 15:59 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2012 at 16:05 UTC | |
by hbm (Hermit) on Aug 14, 2012 at 16:38 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2012 at 18:06 UTC |