in reply to What's the best way to get first character of the string?
Interestingly enough, the following does not work ...
my ($first) = reverse($string) =~ /(.)$/sm;
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|