Perl Primer - University of California, Davis

You can also find the same character by using a negative offset value from the end of the string: String[-i] is the character at position i from the right side of the string. Slicing is a very useful and heavily used function in Python: it allows you to extract specific substrings of a string. ................
................