in reply to Re: File Parsing and String Formatting
in thread File Parsing and String Formatting

I'll appreciate you getting back. what I was trying to format is to get the data to send a result like:
463694|BROOKS JR|JAMES|ArnoldMarkoe, 1/17/03|MD Wkly Note|H:\17\00004DA5.005
I'm reading a file and outputing it to another file. unfortunately it is giving me this result: 464734|CARRASO|ZONIA|Cristiane Takita|12/18/02|MD Wkly Note|H:\08\00004DC4.0138\\00004DC4.013| do you think, I should put me code any other way?? my $out = join '|', @fields[0..5], $finstring,"\n";

Replies are listed 'Best First'.
Re: Re: Re: File Parsing and String Formatting
by l2kashe (Deacon) on Feb 17, 2003 at 03:20 UTC
    It appears from your output, that you are appending the same data to the $finstring scalar twice.

    Look at your last item in your output
    H:\08\00004DC4.0138\\00004DC4.013
    the bold italicized text is a duplicate of what comes before it. You are getting the data you want, you simply need to find in your code where you are getting the same data, and drop that portion.


    /* And the Creator, against his better judgement, wrote man.c */