Try:
$string =~s/ //g;
That will get rid of all spaces. If you also want to get rid of tabs,
$string =~s/[ \t]//g;
Or you can use a \s instead of \t to also get rid of newlines, carriage
returns and form feeds.
Pete Hanson
source1results.com
-----Original Message-----
From: softhome [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 7:36 PM
To: [EMAIL PROTECTED]
Subject: removing white spaces
Hi people!
It sounds a bit stupid but I don't know the way to remove white spaces in a
string.
$string = "No sé como quitar los putos spacios";
and now?
thanks for your help
Javier B.
--
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]