[Mastering-perl] Why doesn't this work?

Andy Armstrong andy at hexten.net
Fri Dec 15 14:35:36 EST 2006


On 15 Dec 2006, at 19:18, Eric Maki wrote:

>

> Looks like an optimization: the /g in list context is going to

> exhaust the matches. In scalar or void context, /g will act as

> an interator, so pos() needs to persist and be mutable.


Aye, that'll be it. Well, that's in Ch2 :)

--
Andy Armstrong, hexten.net



More information about the Mastering-perl mailing list