substr $str, 0, 3;
Abigail
In reply to Re: obtaining the three leftmost characters of a string by Abigail-II in thread obtaining the three leftmost characters of a string by Baz