in reply to Reading line and Spliting it

All well. Just get array values into scalars like:
my ($Id,$Name,$Sex,$RegDate,$LeaveDate,$Time)=@colarray
Remaining fields would be automatically ignored looking at Left Hand Side.

Replies are listed 'Best First'.
Re^2: Reading line and Spliting it
by lazy (Novice) on Jul 17, 2014 at 10:22 UTC

    it will be possible when the number of column names are fixed but in dynamic situation the number of columns may vary as i have to read many files like this !