positive-lookbehind

Why doesn't this positive look-behind assertion work when anchored to the start of the string?

Why doesn't this look-behind assertion work when it's anchored to the front of the string? Run the following code and you'll see that the first test passes but the second, which varies only by the ^ anchor, fails. use Test::More tests => 2; my $s = '/123/456/hello'; $s =~ s{(?<=/)\d+(?=/\d+/hello)}{0}; # unanchored is($s, '/0/456...