in reply to Re^4: finding position
in thread finding position

Start with use warnings;, and you're doing yourself a big disfavour by not using use strict; either.