RE: Removing the blank spaces

2006-03-13 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote on 03/13/2006 03:54:10 PM: > > [EMAIL PROTECTED] writes: > > > #! /usr/bin/perl > > > $input=" exampleinformation in a string "; > > > $input =~ /\s+/ /g; > > > > should be s/\s+/ /g; note initial s in s/// substitution. > > i used t

Re: Removing the blank spaces

2006-03-13 Thread Williamawalters
In a message dated 3/13/2006 4:01:48 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > > > $input =~ /\s+/ /g;> > > > > > should be s/\s+/ /g;   note initial s in s/// substitution. > > i used that religiously like i used the preceding m on m// religiously > until a few months back.

Re: Removing the blank spaces

2006-03-13 Thread Josh . Perlmutter
[EMAIL PROTECTED] wrote on 03/13/2006 03:54:10 PM: > In a message dated 3/13/2006 9:43:44 A.M. Eastern Standard Time, > [EMAIL PROTECTED] writes: > > > [EMAIL PROTECTED] wrote on 03/11/2006 03:05:10 > > PM: > > > Today's Topics: > > >

Re: Removing the blank spaces

2006-03-13 Thread Williamawalters
In a message dated 3/13/2006 9:43:44 A.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > [EMAIL PROTECTED] wrote on 03/11/2006 03:05:10 > PM:> > Today's Topics:> >    4. Removing the bla

Re: Removing the blank spaces

2006-03-13 Thread Josh . Perlmutter
better late than never... [EMAIL PROTECTED] wrote on 03/11/2006 03:05:10 PM: > Today's Topics: >4. Removing the blank spaces (Naresh Bajaj) > -- > -- > Message: 4 > Date: Sa

Re: Removing the blank spaces

2006-03-11 Thread Williamawalters
In a message dated 3/11/2006 6:14:38 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > - Original Message - > From: "Naresh Bajaj" <[EMAIL PROTECTED]>> To: <activeperl@listserv.ActiveState.com>> Sent: Saturday, March 11, 2006 8:49 PM>

Re: Removing the blank spaces

2006-03-11 Thread Petr Vileta
- Original Message - From: "Naresh Bajaj" <[EMAIL PROTECTED]> To: Sent: Saturday, March 11, 2006 8:49 PM Subject: Removing the blank spaces Hello, This is my problem. I have extracted one variable value from a file and saved it another fie. Problem is that it has to

RE: Removing the blank spaces

2006-03-11 Thread Matt Ross
Instead of using / / try splitting with /\s+/,$fti   Best Wishes Matt From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Naresh Bajaj Sent: Saturday, March 11, 2006 1:49 PM To: activeperl@listserv.ActiveState.com Subject: Removing the blank spaces   Hello

Removing the blank spaces

2006-03-11 Thread Naresh Bajaj
Hello, This is my problem. I have extracted one variable value from a file and saved it another fie. Problem is that it has too many spaces as shown in this example. I want to remove those blank spaces. If I use split, /  / $fti, I am getting partial results as shown below. Please let me know ho