in reply to Reading fixed width fields (was: Reading in Data)

Assuming that this is correct:
input sno$ 1-3 school$ 5 class 6-7 Religion 9 education 15 Race 21 @23 + (A1-A100) (1.);
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 :
@array = ( 'input', 'sno$', '1-3', ... );
You then process the individual data fields in whatever way you feel best.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain