![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^3: String Match Use of $1 Uninitializedby ikegami (Patriarch) |
on Dec 16, 2009 at 21:47 UTC ( [id://813090]=note: print w/replies, xml ) | Need Help?? |
Putting stuff in $1 is called capturing. While parens also do grouping, it's usually done using (?: ... ). For example, /abc(?:def|ghi)/.
In Section
Seekers of Perl Wisdom
|
|