sub onFinish { while () { last if /^\.$/; print; } }