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

RE: split, ignoring spaces

2002-01-09 Thread Hanson, Robert
] 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

split, ignoring spaces

2002-01-09 Thread Alex Harris
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 easie