# Very simple conversion between string length and string width for Arial 10. # See below for a more sophisticated method. # sub string_width { return length $_[0]; }