perl query

Can take this file format and start perl script
Inputs to perl script

  1.  2 files with same format will be arguments to script
    
  2.  Threshold value option such as “-th 5k/M”. This option would mean that 5kb or 5mb of the memory is allowed to be used as threshold.
    

Output from perl script:
Diff the files and just print PASS/FAIL depending on the threshold specified.

Table used in this format:

MemUsed(KB) MemAloc(KB) MemFree(KB) StreamName

   17489          17489               0    - (anything)
      11             11               0    - 
       5              5               0    -

   17505          17505               0     Totals

i am new to perl … totally a newbie …