in reply to Re^3: High Density Data Aid - swapping specific combination of lines/columns repeatedly
in thread High Density Data Aid - swapping specific combination of lines/columns repeatedly

so should the
@data[3,4]
be
@data[4,5]
instead since the observations are columns 4 and 5?
  • Comment on Re^4: High Density Data Aid - swapping specific combination of lines/columns repeatedly
  • Select or Download Code

Replies are listed 'Best First'.
Re^5: High Density Data Aid - swapping specific combination of lines/columns repeatedly
by wind (Priest) on Apr 13, 2011 at 19:13 UTC

    No, I don't think that's what you want

    Array indexes in perl start from 0, ie column 1 is $data[0].

    Therefore columns 4 and 5 are represented by @data[3,4] in an array.