On Monday, June 10, 2002, at 10:02 , Fontenot, Paul wrote:
> 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? call me old fashion but I like the expressed assertion my @list = split(/\s+/, $line); and for fun you can play with http://www.wetware.com/drieux/pbl/perlTrick/splitForManyWhiteSpace.txt Ok, so nesting autonomous hashes and a function rather than having to write explicit code may not be everyone's cup of tea - but I think it also works as a way to play the game. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]