Have you seen the length() function?

perldoc -f length

If you use a pattern match to grab all of the characters up to the first
space, you can check the length of $1.



-----Original Message-----
From: Gallagher, Tim (NE) [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 12:16 PM
To: Perl Beginners
Subject: Need to get number of charictors to the first blank (white
space) space

<snip>

I want a way to count the number of characters to the first space.  Is
there an easy function to do this???



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to