# Print out the array of arrays for my $x (0 .. $#AoA){ print "$AoA[$x][0] -> $AoA[$x][1]\n"; } Output: 192.168.19.18 -> 10.151.150.29.2703: 192.168.19.1 -> 10.151.150.33.2703: 192.168.19.18 -> 10.151.150.29.2703: 192.168.19.1 -> 10.151.150.33.2703: 192.168.19.1 -> 10.2.252.10.53: 192.168.19.1 -> 10.2.252.10.53: 192.168.19.1 -> 10.6.60.197.113: 192.168.19.18 -> 10.151.150.29.2703: 192.168.19.18 -> 10.151.150.29.2703: 192.168.19.18 -> 10.151.150.29.2703: 192.168.19.18 -> 10.151.150.29.2703: 192.168.19.18 -> 10.151.150.29.2703: