in reply to Re: calculating length of the stringin thread calculating length of the string
... and, just to be 100% clear, the bit o’ magick that you would be looking for, in the above code snippet, is the call to chomp().