in reply to Finding the right $<*digit*> capture variable
This is primarily used inside (?{...}) blocks for examining text recently matched. For example, to effectively capture text to a variable (in addition to $1, $2, etc.), replace (...) with
By setting and then using $var in this way relieves you from having to worry about exactly which numbered set of parentheses they are.
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding the right $<*digit*> capture variable
by diotalevi (Canon) on Apr 16, 2003 at 05:01 UTC |