Hi, me again with the Perl tables...?

Hi. One of you told me it could be useful if i showed you how the table looks like. So here it is as it is:

ID NameBnumber crp2 señal crp deteccion crp3 senal crp3 deteccion wt1_señal wt_deteccion wt2_señal wt2_deteccion wtg2_señal wtg2_deteccion wtg3_señal wtg3_deteccci

1 aas_b2836_at 279.2 P 293.8 P 360.8 P 332.2 P 475.6 P 374.4 P

2 aat_b0885_at 344.9 A 332.5 A 110.7 A 256.8 A 237.1 A 35.2 A

3 abc_b0199_at 697 M 682.4 A 530.5 A 532 A 747.9 M 882.8 A

4 abrB_b0715_at 537.3 P 518.3 P 446.3 A 329.6 M 357.9 P 406.7 A

5 accA_b0185_at 1735.3 P 1083.1 P 1821.7 P 1798.6 P 2416.7 P 1794.5 P

6 accB_b3255_at 2314.2 P 1811.4 P 1598 P 1835.2 P 3182.8 P 2893.6 P

7 accC_b3256_at 2486.2 P 1845.6 P 1165.7 P 1146 P 2861.6 P 2883.3 P

8 accD_b2316_at 1770.3 P 1468.1 P 1592.1 P 1808.5 P 2257.6 P 2873.7 P

9 aceA_b4015_at 632.6 P 790.2 P 3005.5 P 2489 P 474.1 P 521.8 P

10 aceB_b4014_at 282.7 P 394.4 P 1610.5 P 1254.1 P 274.8 A 316.6 A

11 aceE_b0114_at 5060.1 P 3979.2 P 2093.5 P 1665.9 P 7943.2 P 8411.5 P

1

1 Answer

Relevance
  • 1 decade ago
    Best Answer

    I'm not going to give you food, I'm going to teach you how to fish.

    Use 'open' to open the file.

    Use <> to read the file line-by-line.

    Use 'split' to break apart the line at every space and put all the "words" into an array.

    Use + to add the desired numbers.

    Use 'print' to output the total.

Still have questions? Get your answers by asking now.