in reply to
How to make a perl file add random numbers that a user enters?
I would suggest you post the code that you have so far, so we can offer suggestions. We can only guess at what your issue is from your vague description.
Also, be aware that this site is neither a code writing service, nor a homework writing service. We will be happy to help you with problems if you put the work in, we will not do it for you.
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."