Because of the | in the middle of the regex there will never be a time where both parenthesis are used. That is, there will only be one set of parenthesis total. Ergo, $2 will never be defined.
I'm so adjective, I verb nouns! chomp; # nom nom nom
| [reply] [d/l] |
Thank you for your posts. Now I begin to understand the warning messages. But I thought $1 or $2 will not be defined at the same time,i.e. for any moment, only either of them is defined, the other is undefined. We can say sometime $1 is undefined, sometime $2 is undefined; but I still don't think that $2 will never be defined, since in this example, "\U$2" indeed change "and" to "AND". Is my understanding right? Thanks.
| [reply] |
| [reply] [d/l] [select] |
| [reply] [d/l] [select] |