Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Parse one fiile, send the records to two different files

by BigRedEO (Acolyte)
on May 27, 2016 at 17:16 UTC ( [id://1164341]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Parse one fiile, send the records to two different files
in thread Parse one file, send the records to two different files

Well, the script now ran through and again put only the correct files in my "clean" file, but for the error file, I now have 1138 lines, where I should only have 272 lines. When I did a "head" on that error file, I find that it's listing each field as a separate line and no comma delimiters i.e. -

650187016
2
1
checked out under cash
650200678
1
1
HIT CASH TWICE
650096506
1

whereas I want the lines put back in their original form, all commas included, i.e.

650187016,2,1,checked out under cash ,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  • Comment on Re^4: Parse one fiile, send the records to two different files

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1164341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found