Hi Derby,
I have another bit of code that calls the update subroutine. It is in the beginning of the code. It begins like this:
elsif ($choice eq "update") # update shopping cart
The current subroutine that is written, using your example of 2 quantities, will change all the items in the shopping cart to 2 quantities. So, I know that the subroutine is the source of the problem. I just don't have enough Perl knowledge to fix it.
I'm very new to Perl programming. I'm learning as I'm going.
Any help you can give will be greatly appreciated.
-Helen