Hi,
I have a Hashmap called %prevDelivered( ) and it has key as pty_id and other infomation.
I wnat to read the above hasmap key as well as information into new hashmap called %lastDelivered( ).
I tried it with the follwoing code. but i am not able to move achive the required functionality.
Please suggest alternative code
I have a Hashmap called %prevDelivered( ) and it has key as pty_id and other infomation.
I wnat to read the above hasmap key as well as information into new hashmap called %lastDelivered( ).
I tried it with the follwoing code. but i am not able to move achive the required functionality.
Please suggest alternative code
Code:
foreach (keys(%prevDelivered)) {
my $ptyid = $_;
my ($store_id, $pty_id, $trans_cd, $curr_status, $tdlinx_cd, $cat_id,
$crc_mod1, $crc_mod2, $crc_mod3, $crc_mod4, $crc_mod5,
$crc_mod6, $crc_mod7, $crc_mod8, $inc_in_file)
= @{ $prevDelivered{$ptyid} };
$lastDelivered{$ptyid} = ($store_id, $pty_id, $trans_cd, $curr_status,
$tdlinx_cd, $cat_id, $crc_mod1, $crc_mod2,
$crc_mod3, $crc_mod4, $crc_mod5,
$crc_mod6, $crc_mod7, $crc_mod8,
$inc_in_file);
}
Comment