in reply to Re^3: Identifying Reverse Position of Specific Character in a String
in thread Identifying Reverse Position of Specific Character in a String

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.

  • Comment on Re^4: Identifying Reverse Position of Specific Character in a String
  • Download Code

Replies are listed 'Best First'.
Re^5: Identifying Reverse Position of Specific Character in a String
by jdporter (Paladin) on Aug 25, 2006 at 20:18 UTC

    Point. Or two. ;-)