in reply to Re^4: Adding object identifiers corresponding to each IP and printing them to O/P File.
in thread Adding object identifiers corresponding to each IP and printing them to O/P File.

I have some code that, afaik, does what you want - however, I ain't posting it until I see some sort of coding effort from you - specifically:

  1. Some attempt to read both files
  2. Some attempt to perform a regex to recognise your headers and objects
  3. Some attempt to sum the final object field where appropriate

Your code needn't work or, indeed, even run, but it should demonstrate good faith on your part...

map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
Tom Melly, pm@tomandlu.co.uk
  • Comment on Re^5: Adding object identifiers corresponding to each IP and printing them to O/P File.
  • Download Code