Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Stuck in my final step of code using array of arrays

by Anonymous Monk
on Mar 02, 2014 at 17:56 UTC ( [id://1076724]=note: print w/replies, xml ) Need Help??


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

Didn't I mention it??? Hm, maybe it wasn't clear... :)
I would like to print:
A0AWZ5\tPF03797\t548\t1073

Replies are listed 'Best First'.
Re^3: Stuck in my final step of code using array of arrays
by Laurent_R (Canon) on Mar 02, 2014 at 18:49 UTC
    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).
        Alright, if I understand well, then it means that your data is not in the right order, the order that you want to use is the order given by the second or third field. The easiest might then be to start by sorting your AoA in accordance with the second field of each sub-array.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1076724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-19 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found