You are not logged in. Please login at www.codechef.com 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

0★gb92
123
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.

link

answered 04 Sep '13, 12:48

tech_ankur11's gravatar image

0★tech_ankur11
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×180
×7
×7

question asked: 01 Aug '13, 12:30

question was seen: 731 times

last updated: 04 Sep '13, 12:48