Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?

by Lotus1 (Vicar)
on Sep 29, 2014 at 03:47 UTC ( #1102315=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?
in thread Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?

The Anonymous Monk deleted the header row in the code provided above.

delete $row{Gene};

That seems like the easiest way to do it. To do what you are asking here you can use eof. Also refer to Variables related to filehandles

  • Comment on Re^3: Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?
  • Download Code

Replies are listed 'Best First'.
Re^4: Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?
by coolda (Novice) on Sep 29, 2014 at 16:50 UTC
    oh yes i noticed that, however my actual files has one more line above the row deleted by
    delete $row{Gene};
    So i need to skip the first row and then delete the Gene row.. thanks for the input, i'll look into the links
Re^4: Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?
by coolda (Novice) on Sep 29, 2014 at 19:30 UTC
    i used next if /^/ ; it works well!! thanks,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2021-04-16 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?