S
subha
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
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