vnpenguin has asked for the wisdom of the Perl Monks concerning the following question:
There are about 100 "vectors" with different length. I would like to write a Perl script to convert it to the form:v_x { x1 x2 x3 x4 x5 x6 x7 x8 } v_y { y1 y2 y3 y4 y5 } v_z { z1 z2 z3 z4 z5 z6 } ...
So each vector becomes a column. Because of different length of vector, I don't know how to process it. In this case, using of Array or Hash is better ? Could you give me some ideas please. Thank you in advance, Regards,x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4 x5 y5 z5 x6 z6 x7 x8
2005-12-15 Retitled by planetscape, as per Monastery guidelines
Original title: 'Text processing'
|
|---|