[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
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.
[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:
> > >
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
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
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>
- 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
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
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