perl -Mre=debug -e '"hello world" =~ /l.w/' #### Freeing REx: `","' Compiling REx `l.w' size 6 Got 52 bytes for offset annotations. first at 1 1: EXACT (3) 3: REG_ANY(4) 4: EXACT (6) 6: END(0) anchored `l' at 0 (checking anchored) minlen 3 Offsets: [6] 1[1] 0[0] 2[1] 3[1] 0[0] 4[0] Guessing start of match, REx `l.w' against `hello world'... Found anchored substr `l' at offset 2... Starting position does not contradict /^/m... Guessed: match at offset 2 Matching REx `l.w' against `llo world' Setting an EVAL scope, savestack=3 2 | 1: EXACT 3 | 3: REG_ANY 4 | 4: EXACT failed... Setting an EVAL scope, savestack=3 3 | 1: EXACT 4 | 3: REG_ANY 5 < world> | 4: EXACT failed... Setting an EVAL scope, savestack=3 9 | 1: EXACT 10 | 3: REG_ANY 11 <> | 4: EXACT failed... Match failed Freeing REx: `"l.w"'