in reply to calculator script

I'm trying to edit the script so it can work out three arguments. Please can someone help.
You neglected to mention how it does not work for you. So, here is my guess. If you change:
exit(1) unless $nbArguments == 5;

to:

exit(1) unless $nbArguments == 4;

Then execute your code like this:

C:\Perl> 837421.pl 1 + 3 4 number of arguments: 1 + 3 + 4 = 8

It seems to add the 3 numbers. The key is to count the number of arguments properly.

Here are a few more tips: