in reply to Need some help to review code
#@ 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need some help to review code
by hbradshaw (Novice) on Jan 09, 2003 at 21:29 UTC | |
by derby (Abbot) on Jan 10, 2003 at 01:28 UTC | |
by hbradshaw (Novice) on Jan 10, 2003 at 13:59 UTC | |
by hbradshaw (Novice) on Jan 10, 2003 at 19:57 UTC |