[ic] Payment.pm

Dwayne Holmberg interchange-users@icdevgroup.org
Tue Jun 3 12:18:00 2003


On Tue, 2003-06-03 at 07:21, Cameron G wrote:
> Let us consider this snippet of code from Payment.pm
> 
>         foreach $key (keys %map) {
>                 $actual{$key} = $vref->{$map{$key}} || $cref->{$key}
>                         and next;
>                 my $secondary = $key;
>                 next unless $secondary =~ s/^b_//;
>                 $actual{$key} = $vref->{$map{$secondary}} ||
> $cref->{$map{$secondary}};
>         }
> 
> am i to believe that when creating the %actual hash, it will put the billing
> details in in place of the shipping details if the customer has filled them
> in?

Yep, you are.

-- 
Dwayne Holmberg
Iconys Informatica, Inc.

http://iconys.com
Ph:  780.423-1700
Fax: 780.423-1775