perlquestion
oxydeepu
<p>Hi all perl monks,</p>
<p>I have a basic question. I have a file of numbers with two columns </p>
<p>##############<br />
109026 3<br />
109027 28<br />
109028 30<br />
116958 15<br />
116960 35<br />
116961 39<br />
116962 70<br />
116963 72<br />
147184 2<br />
147588 1<br />
153087 32<br />
#############</p>
<p>like this. So i have to format them in such a way that. I should only consider those line which have a value greater than 4 in the second column. The output should be like this. I tried different things it is not working out.</p>
<p>#############</p>
<p>109027 109078 (which is 109028 + 50) 30<br />
116958 117013 (which is 116963 + 50) 72<br />
153087 153137 (which is 153087 + 50) 32</p>
<p>#############</p>
<p>I hope it explains the problem. I couldn't make it work. <br />
This will be a great deal of help and this not an assignment. I am trying to learn perl by myself and it is a problem i just came across with.</p>
<p>Thank you in advance,<br />
Deepak<br />
</p>