Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Search & Replace

1 view
Skip to first unread message

subha

unread,
May 24, 2006, 7:56:16 AM5/24/06
to
Hi,

I wrote Perl Scripting for Alignment.

I had a Text file in which data was unaligned and with my 2 lines
coding i aligned the data.
data was something like this:

FirstName LastName Email1
--->Email2 Date Time Timetype

Output should be in one line

Name(first & Last) Email1 Email2 Date Time
Timetype

I used the code

$replace_file =~ s/\n\-\-\-\> /\t/g;
$replace_file =~ s/\s\s+/\t/g;

to get above output, but the problem comes when the user has middle
name even

if there is middle name i am getting output like

Name(first,middle, Last)Email1 Email2 date time
timetype

Can anyone help me out with this.

thanks in advance
subha

0 new messages