http://qs1969.pair.com?node_id=1076723


in reply to Stuck in my final step of code using array of arrays

You've shown what you script prints. Given your specs, can you additionally show what you'd like it to print?

  • Comment on Re: Stuck in my final step of code using array of arrays

Replies are listed 'Best First'.
Re^2: Stuck in my final step of code using array of arrays
by Anonymous Monk on Mar 02, 2014 at 17:56 UTC
    Didn't I mention it??? Hm, maybe it wasn't clear... :)
    I would like to print:
    A0AWZ5\tPF03797\t548\t1073
      I can guess where the 1073 value is coming from, but can't see where the 548 is coming from (except, possibly, that it is one more that the end of the next element).
        It is actually the 1st letter after the end of the element in the array of arrays that precedes the "wanted" one (i.e. PF03797 in this case).
        I had:
        0 [ PF12951 421 455 ], 1 [ PF03797 822 1073 ], 2 [ PF12951 515 547 ],

        , so, I need the range between the end of whatever is before PF03797 until the beginning of whatever is after PF03797 (in this case there is nothing, since both PF12951 finish before the position 822 that PF03797 starts).