but maybe a simple substr would be better way? Currently I'm too fascinated by regexps, so sometimes it's hard to think about something other :)($letter) = $string =~ /^(.)/;
In reply to What's the best way to get first character of the string? by karmas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |