I guess I am not sure what you mean by "ringing a bell". If you mean printing 0x7 to the console to beep the PC speaker, then that's easy: printf("%c",7). If you mean something more, hum, complex, then I guess you need to specify what type of a "bell" you are talking about. One idea would be to have the perl script control something via the serial port. You could even build your own basic "speaker with a switch" for less than a dollar worth of components. Hope this helps.