Help for this page

Select Code to Download


  1. or download this
    my $i = 1;
    $varname = "_address" . $i;
    $customer->[0]{$varname} = $customer->[0]{'_address'};
    print "Customer Address", $customer->[0]{$varname};
    
  2. or download this
    $customer->[0]{_address1}
    $customer->[0]{_address2}
    
  3. or download this
    $customer->[0]{_address}[0]
    $customer->[0]{_address}[1]
    
  4. or download this
    my $arrayref = $customer->[0]{_address};
    for my $address (@$arrayref) {
        # do whatever with $address
        ...
    }