develooper Front page | perl.beginners | Postings from January 2002

split, ignoring spaces

Thread Next
From:
Alex Harris
Date:
January 9, 2002 06:51
Subject:
split, ignoring spaces
Message ID:
F180570qb124IfsR75y00014cea@hotmail.com


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


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About