in reply to Get Numlock Status

If you're running you program under X11, I think you could use X11::Keyboard.

Arjen