You are the man, thanks. That was exactly what I needed.

-----Original Message-----
From: Hanson, Robert [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 10:02 AM
To: Fontenot, Paul; Perl - Beginners (E-mail)
Subject: RE: Spaces...


Try /\s+/

>From the perlre manpage:

\s  Match a whitespace character
+   Match 1 or more times

Rob


-----Original Message-----
From: Fontenot, Paul [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 1:02 PM
To: Perl - Beginners (E-mail)
Subject: Spaces...


I have a logfile that has the following format:

month day time

The problem is splitting on the "space" - split(/ /). Sometimes there are
more than one space. How can I get perl to split on 1 or more spaces?


-- 
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]

Reply via email to