"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.
> 
> Rob
> 
> -----Original Message-----
> From: Alex Harris [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 09, 2002 9:51 AM
> To: [EMAIL PROTECTED]
> Subject: split, ignoring spaces
> 
> I'm doing the following to seperate out items:
> 
> @date = split(/ /,$date);
> 
> However, I keep ending up with a space in @date[3].  How do I totally
> eliminate spaces so only words/numbers appear in the array?
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
> 
> --
> 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]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to