Title: RE: taking the extra spaces out..

 
You don't have to escape the spaces.

$text =~ s/   / /g;

-----Original Message-----
From: Johnno
To: [EMAIL PROTECTED]
Sent: 11/24/00 5:24 AM
Subject: taking the extra spaces out..

Hello,

I was wondering if any knew of a way to taking out 2 spaces and just
leave
one..

ie..  hello   world = hello world..

when i tried i got all sorts of problems..  the piece of code i was
using
is..

$text =~ s/\  /\ /g;

any ideas??

Johnno



_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to