in reply to Problem with pre-compiled regex
@words=qw(qr/have/ qr/regex/);
You probably meant @words = (qr/have/, qr/regex/);. Since qw/ .. / always returns a list of strings, you are trying to match the text against the string qr/have/, not against a precompiled regex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with pre-compiled regex
by saranrsm (Acolyte) on Jan 17, 2012 at 14:42 UTC | |
by moritz (Cardinal) on Jan 17, 2012 at 15:31 UTC | |
by ikegami (Patriarch) on Jan 18, 2012 at 07:03 UTC | |
by JavaFan (Canon) on Jan 17, 2012 at 16:45 UTC | |
by LanX (Saint) on Jan 17, 2012 at 15:14 UTC | |
by JavaFan (Canon) on Jan 17, 2012 at 16:34 UTC |