[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Re: Syntax Question on Using Cart in UserTags (Perl)
C.B. Currier writes:
> Trying to do a loop through a cart inorder to do some SQL lookups.
> Having a problem with the fact that I believe the cart is being passed in
> but for what ever reason I cannot reference the array properly.
> Any suggestions on the below mentioned code is greatly appreciated.
> BTW: I am not necessarily getting an error, just not log string being
> returned.
>
> C.B.
>
> Code:
>
> UserTag test_calc Routine <<EOF
> sub {
> my $itmcount = 0;
> my $itmlst = "";
> my $item = $Carts->{main};
> foreach (@$item){
> $itmcount++;
> $itmlst.= $item->{code};
$item is the cart array, the item itself is $_. Good penalty
for bad variable naming.
Bye
Racke
--
Prolific Interchange Consulting (Excellent German Quality !).
Take a look at Materialboerse (http://www.materialboerse.de/), WITT
(http://www.witt-weiden.de/), Boxmover (http://shop.boxmover.ch/) or
Passionshop (http://www.passionshop.com/racke). Need a shop ? Contact us.