in reply to Re^3: Pulling first 10 characters out of string?
in thread Pulling first 10 characters out of string?

Then you want substr($x,10)=""; (though that will give an error if $x isn't at least 10 characters).