You are not logged in. Please login at to post your questions!


Perl Problem

How would i subtract first column of file1 to first column of file 2 where both the files are multi columnar ...

help asap!

asked 01 Aug '13, 12:30

gb92's gravatar image

accept rate: 0%

You can extract the contents of both your files into two different arrays and then you can split every line with space and get the first column out of it, by that way you will get the first column of both the files and you can do whatever you want now. Note: this is the easiest solution for this problem and hence it needs to be further optimized, so when you have solved your problem we can further discuss about a better solution.


answered 04 Sep '13, 12:48

tech_ankur11's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 01 Aug '13, 12:30

question was seen: 731 times

last updated: 04 Sep '13, 12:48