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 JavaFan (Canon)
on Feb 22, 2012 at 21:35 UTC ( [id://955630]=note: print w/replies, xml ) Need Help??


in reply to Processing files column-wise

I cannot figure out what the end result is you are aiming for (you lost me after "starting from the tenth column"). But if you want to cut out the first 9 columns of a file, use the cut utility. For instance (untested):
use autodie; open my $fh, "cut 1-9 -d ' ' $file1 $file2 $file3 $file4 |"; while (<$fh>) { my @columns = split ' '; ... Do something with 9 columns ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2026-03-08 08:11 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.