in reply to why such an error happened?
And you're getting this warning because $2 is undefined.
Take a closer look at your regular expression. You only have one set of capturing parentheses on each side of the alternation, so you're only ever going to get one match. ie. $2 will always be undefined.
Cheers,
Darren
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why such an error happened?
by lightoverhead (Pilgrim) on Oct 20, 2008 at 01:16 UTC | |
by Lawliet (Curate) on Oct 20, 2008 at 01:21 UTC | |
by lightoverhead (Pilgrim) on Oct 20, 2008 at 01:39 UTC | |
by CountZero (Bishop) on Oct 20, 2008 at 05:23 UTC | |
by Lawliet (Curate) on Oct 20, 2008 at 01:55 UTC | |
by ikegami (Patriarch) on Oct 20, 2008 at 09:45 UTC | |
|
Re^2: why such an error happened?
by JavaFan (Canon) on Oct 20, 2008 at 09:36 UTC |