D
Damian
Ben said:Brian McCauley said:The number of the last successful capture in the regex is $#- and the
total number of captures in the regex is in $#+.
Ouch! These *really* ought to be the same.
I would prefer to write $#+ as @+-1, because $#+ is an ordinal
while scalar(@+) is a cardinal. This would bite if you were daft
enough to change $[...
Cardinal? What exactly do you mean by that? It seems to make no
difference at all over than cosmetic.