what is ``$line`` here ? It seems undefined.