in reply to Re^2: zero-length match increments pos()
in thread zero-length match increments pos()
(Note that older perls have a bug where Devel::Peek doesn't correctly show the flag by name, but you can still see the bit in MG_FLAGS.)$ perl -we'use Devel::Peek; ($x="abc")=~/.??/gc; Dump $x' SV = PVMG(0x10183f00) at 0x10167ca4 REFCNT = 1 FLAGS = (SMG,POK,pPOK) IV = 0 NV = 0 PV = 0x10142828 "abc"\0 CUR = 3 LEN = 4 MAGIC = 0x10147380 MG_VIRTUAL = &PL_vtbl_mglob MG_TYPE = PERL_MAGIC_regex_global(g) MG_FLAGS = 0x01 MINMATCH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: zero-length match increments pos()
by tilly (Archbishop) on Feb 22, 2005 at 09:30 UTC |