perl: Fix warning about unsharing the $stepper variable