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