Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Processing files column-wise

by aaron_baugher (Curate)
on Feb 22, 2012 at 21:16 UTC ( [id://955624]=note: print w/replies, xml ) Need Help??


in reply to Processing files column-wise

This still sounds like line-by-line processing. If not, maybe you can give some example data, input and output. But I'm picturing this:

open files for writing: file1, file2, file3, file4 for each input file get first input line look at the headers and set up a map of which fields go where while get an input line split it into fields print the fields to the appropriate output files based on the map

Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2026-03-11 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.