On 12/8/07, David Gilden <[EMAIL PROTECTED]> wrote: > Could some please tell me why this writing the data like think it should.
I'm not sure what you're asking. Is there a verb in your sentence? Is it missing some other key words? I think your perl binary is doing what you asked of it. > Input data: > 4,'Daniel Niederer','','Wberweg 3A','','Hersiwil',' > > Sample of the output: (first 4 'columns' ) > 4,'Daniel Niederer','','Wberweg 3A','','Hersiwil','4558', That doesn't look like four columns to me. How do you count it? > I would think it should print to disk the following :: > > 0 : 4,'name: Daniel Niederer','','Wberweg 3A','','Hersiwil','4558', > > $customers_id= $count++ . " : ". $tmpArray[0] || "''"; > $customers_name= "name : " . $tmpArray[1] || ; That code doesn't print anything. Do you mean that you want a program to output Perl code? > #!/usr/bin/perl -w > > $fileIn = "orders-raw.txt" ; > $CleanCSV = "clean_orders_insert.txt"; Have you heard that you should start nearly every program with "use strict" and "use warnings"? It's a good first step, before asking for help. > $customers_id= $count++ . " : ". $tmpArray[0] || "''"; > $customers_name= "name : " . $tmpArray[1] || "''"; > $customers_company= $count++ . " : ". $tmpArray[2] || "''"; > $customers_street_address= $count++ . " : ". $tmpArray[3] || "''"; > $customers_suburb= $count++ . " : ". $tmpArray[4] || "''"; What is $count counting? Is it supposed to be synchronized with the indices of @tmpArray? Do you realize that the concatenation operator (the dot ".") is higher in precedence than the logical-or (the vertical bars "||")? Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/