@position == @list ? $done = 1 : $next = 1;