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

Reply via email to