in the declaration as you listed it here there is no space between 'sub' and 'dice100'. If in your compiled code the space is also missing it may cause problems.
If however, the space is there in the compiled code the subroutine may not be registered properly with the mud code. From my experience playing muds when you enter something not recognised as a command it simply echoes it pack to you.