I can see these issues with your code
- There is a syntax error in the code. ‘}’ is missing in print statement.
- Even with the syntax error fixed, the code will not print the array elements but the array refrences. Something like:
‘9344220003|ARRAY(0x23d0e84)ARRAY(0x23c298c)ARRAY(0x2454aa4)’
$MSISDN_ref->{$key} is an AOA (array of array) so you need to loop over it and print the inner arrays separately.