Re: split, ignoring spaces

2002-01-09 Thread Frank
On Wed, Jan 09, 2002 at 03:55:38PM +0100, Jon wrote: > but it will also split on \n,\t so / +/ would be better if it's just > space you wanna split on ---end quoted text--- Check out the default settings for split ;-) ie. use Data::Dumper $_="mary had a littlelamb"; @_=split; print D

Re: split, ignoring spaces

2002-01-09 Thread Jon Molin
"Hanson, Robert" wrote: > > It sounds like you might have multiple spaces between some elements. > > Try this... > > @date = split(/\s+/,$date); but it will also split on \n,\t so / +/ would be better if it's just space you wanna split on /jon > > This will split on one or more spaces.

RE: split, ignoring spaces

2002-01-09 Thread Hanson, Robert
It sounds like you might have multiple spaces between some elements. Try this... @date = split(/\s+/,$date); This will split on one or more spaces. Rob -Original Message- From: Alex Harris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 9:51 AM To: [EMAIL PROTECTED] Sub