okay so my job is requiring me to learn perl and i have never had any type of programming language... ever.
So i need to take a file that has data (nodes/points) with x, y, and z components.
Example of what the file contains is below:
RANDOM TEXT
RANDOM TEXT
Node # x pos ypos zpos
5948 50.24 125.35 5.79
(there are over 200 lines of this data)
RANDOM TEXT
RANDOM TEXT
i need to somehow open this file, grab the data for Node, x position, y pos, and z pos and from this data be able to calculate which node is closest to a given position by a user defined input.
so if the user enters a position of lets say 10 for the x pos, 10 for the y pos, and 10 for the z pos. (just keeping it simple) the code needs to be able to loop through the data and find the node with the closest corresponding positions.
ANY help is much appreciated!!