in reply to Rounding to the nearest 50

Maybe the nearest subroutine from Math::Round will help:
use Math::Round; print nearest(50,$_),"\n" for 125,175,225,275;

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)