strange results using m//g in while loop...

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top