in reply to String Length

if you know that the return values are always going to be numeric, you can do this..
/^(\d+)/; print $1;
or to remove the text..
s/^(\d+).*/\1/; print;
The last example will output the actual string if it doesn't match the regex though. The key will be to verify that you're only giving it what it's supposed to be reveiving.. Rich