since the function makes no attempt to alter $_.
Odd, I see two things that modify it. An assignment, and the regexp alters the associated pos. The point of local is to protect the caller, but it doesn't necessarily do so in this situation.
In reply to Re^4: Identifying Reverse Position of Specific Character in a String
by ikegami
in thread Identifying Reverse Position of Specific Character in a String
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |