foreach: Acces to line numbers and record numbers