perl: Fix warning about unsharing the $tilt variable