# Needle is at positions 2 and 15 var $haystack = abcdefghijklmabcdefghijklm var $needle = CDE var $offset = 0 var $position = call strripos $haystack=$haystack; $needle=$needle; $offset=$offset ; print haystack = $haystack
print needle = $needle
print offset = $offset
print position = $position
var $offset = -12 var $position = call strripos $haystack=$haystack; $needle=$needle; $offset=$offset ; print haystack = $haystack
print needle = $needle
print offset = $offset
print position= $position