in reply to backreference question.
it is the list context in the @t1 = ... m//g which gives you multiple results for just that single match. I does, however, not create a loop.
That's why it doesn't work in your while loop. $1 and $2 get filled only once, because without the list context, that's what the matching operator m does in those cases.
Update: Wrong thought, obviously.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: backreference question.
by davidj (Priest) on Jun 01, 2004 at 00:39 UTC |