#!/usr/bin/perl -w use strict; my $string = "This is a string"; my $char = (unpack("a", reverse $string))[0]; print $char;
No, not faster, or shorter, just Another Way :-P
Arjen
In reply to Re: How do I capture the last character in a string?
by Aragorn
in thread How do I capture the last character in a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |