in reply to Re: get array number
in thread get array number

Or just read the first line and parse the headers outside your while loop and avoid the extra logic inside (of course the truly paranoid would then want to error check and make sure that first read didn't return undef . . . :).