Sandip,
> $<digits>
> Contains the subpattern from the
> corresponding set of capturing parentheses from the
> last pattern match, not counting patterns matched in
> nested blocks that have been exited already.
> (Mnemonic:
> like \digits.) These variables are all read-only and
> dynamically scoped to the current BLOCK.
This is for Regular Expression parsing. In, for example:
$joe =~ /([0-9]{3})-([0-9]{3})-([0-9]{4})/;
if $joe == "415-555-1212" then
$1 == "415"
$2 == "555"
$3 == "1212"
This kinda stuff is almost impossible to grasp without a tutorial; I recommend
the "Llama Book" othewise known as "Learning Perl", which spends 3.2 chapters
on regular expression handling.
(PS. Please pardon the crude regular expression and any syntax errors)
--
-Josh Berkus
Aglio Database Solutions
San Francisco
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]