in reply to whats the problem with this line?

Maybe $cols is not declared while in a use strict context?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.