in reply to Possessive Quantifiers in Perl 5.10 regexps

Change

gbacktrack => q{ $input =~ /$bregexp/g }, gpossessive => q{ $input =~ /$regexp/g }

to

gbacktrack => q{ use strict; use warnings; $input =~ /$bregexp/g }, gpossessive => q{ use strict; use warnings; $input =~ /$regexp/g }

and you'll see what you're doing wrong. Code compiled inside of Benchmark can't see your lexicals, so you're benchmarking

'' =~ //g
against
'' =~ //g

It's no surprise you get the same results. You'll need to use package variables. (Switch my to our.)