in reply to Reading fixed width fields (was: Reading in Data)
That is, everything separated by spaces, you can grab it all in one go using split on the space character (' '). That will give you an array of data such as :input sno$ 1-3 school$ 5 class 6-7 Religion 9 education 15 Race 21 @23 + (A1-A100) (1.);
You then process the individual data fields in whatever way you feel best.@array = ( 'input', 'sno$', '1-3', ... );
|
|---|