Hello (an obvious newbie), made good progress in the past month or so learning perl ;)... need help with an array question please array1 consists of multiple hostnames and array2 has corresponding IPs, I need to join the 2 arrays horizontally like element1 of array1 with element1 of array2 and so on.. (example below)
I did find some solutions in the library but it seems I am not getting it right, can I get some help please? Thanks@array1 = qw(host1 host2 host3); @array2 = qw(ip1 ip2 ip3); # I want the output to look like below ip1 host1 ip2 host2 ip3 host3
In reply to Join 2 arrays horizontally by perl_5eeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |