The buttons for the application are most likely different from that of calc.exe. A google search for the names of the tools you claimed to be using shows GUI tests automation - Tutorial (among other) which is a good starting point.
Again you've not given any specific information. I know you are new to this site, and perhaps to Perl and programming in general, however basic problem solving skills are required regardless of the language. You haven't shown an example of what you've tried, or explained how it doesn't work. In order to make it easier for people to help you, please read and understand the links I have already provided.