my $MyFirstTen = substr($MyVariable,0,10); Assumes it has no leading spaces and have cleaned up the variable.
Wags ;) -----Original Message----- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 08:27 To: [EMAIL PROTECTED] Subject: Get the first 10 characters. How do I get the first 10 characters of a string? Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]