in reply to Pulling first 10 characters out of string?

if you really want to burn some cpu cycles use:
$x="1234567890asdfg"; while (length ($x) > 10) {chop($x)}; print $x;
but otherwise use substr()