#@ UPDATE_CART sub update_cart { my ($cart_ref, $item_id, $qty) = @_; update ($cart_ref->{$item_id}->{qty} = $qty); } #@ UPDATE_CART
That boils down to something like this if $qty is 2
update(2);
That may be a source of problems but I don't see the update method in your scratchpad.
-derby
In reply to Re: Need some help to review code
by derby
in thread Need some help to review code
by hbradshaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |