$string =~ s/\s+//g;

On Fri, Jun 13, 2008 at 3:00 PM, sivasakthi <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> How to remove white space from middle of the string? for example,
>
> $string="hello world  welcome";
>
> I want to print helloworldwelcome
>
>
>
> Thanks,
> Siva
>



-- 
Jeff Peng - [EMAIL PROTECTED]
Professional Squid supports in China
http://www.ChinaSquid.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to