in reply to using a 3D array

Perl has no problem dealing with situations like this as arrays in Perl are not fixed in size, so you can just grow them to whatever size is necessary whilst you are populating them.

It's hard to be any more help without seeing the format of your input data.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re: Re: using a 3D array
by stu96art (Scribe) on Feb 07, 2003 at 20:48 UTC
    davorg, Thanks for the reply. I am sending you an example of the data that I am looking to read from a file into the array. WHat I am looking for is a list of blocks, each block has a list of vertices, and each vertex has 4 values. I am also looking for a way to "check" off blocks once I have written them, and the same for the vertices. Anyway, I am really looking for a structure of a list of blocks, which contain a list of vertices (each block has a different number of vertices) and then each vertex contain four seperate values. Thanks for your help.
    1 455.462708 1026.615005 2 428.309624 1073.409507 3 730.386784 1248.693485 4 757.539868 1201.898982 5 455.462708 1026.615005 88888 6 367.834421 1038.319919 7 340.681337 1085.114421 8 642.758497 1260.398399 9 669.911581 1213.603896 10 367.834421 1038.319919 88888 11 260.028495 1812.352286 12 294.596155 1793.896502