Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Find range in coordinates array

by haukex (Archbishop)
on Oct 02, 2019 at 08:16 UTC ( [id://11106940]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Find range in coordinates array (updated)
in thread Find range in array with indices

Glad to help, and please feel free to ask :-) You can add the same debugging statements as in my first piece of code (at the bottom of the post), then you can hopefully see how everything is being transformed. If I were to nitpick my own code, I would probably add some checking that all the inputs are in the expected formats (e.g. use a regex instead of split). And the updated piece of code depends on the original array not changing, since it creates a second list of indicies.

Log In?
Username:
Password:

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

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

    No recent polls found