On 17 Jul 2001, softhome wrote:
> $string = "No sé como quitar los putos spacios";
> and now?
I'm sure there's a more elegant solution, but here's what I would do:
$string = "Cuando bebo demasiada cerveza, mi nombre es 'Sue.'"
$string =~ s/ //g;
(or)
$string =~ s/\s//g;
The first would just gack the spaces, while the second would gack spaces, line
returns, etc. The /g makes it global. Like I said, I'm sure there's a better way, but
it's too early to think of one.
Would tr// be a better choice?
--
Jason Ledbetter
Data Conversion Specialist
Cadmus Professional Communications
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]