in reply to search position is getting reset after 'local'
Yet another plagiarized OP.
The code you present has a striking similarity with the TODO block of this test.
I wonder what's your intention asking that here? What answer other than "yeah, that's on the TODO list for the pos operator" do you expect?
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Seekers of Perl Wisdom