in reply to substring within range

See if substr will do what you want.

Perl is the programming world's equivalent of English