Dru has asked for the wisdom of the Perl Monks concerning the following question:
Thanks,my @nums1 = map q|1234560| . $_, 1..9; my @nums2 = map q|1321343| . $_, 10..99; my @nums; for (@nums1){ push(@nums, $_); } for (@nums2){ push(@nums, $_); } for (@nums){ print "Number: $_\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better Way to Combine Two Arrays
by kvale (Monsignor) on Mar 10, 2004 at 17:19 UTC | |
|
Re: Better Way to Combine Two Arrays
by Limbic~Region (Chancellor) on Mar 10, 2004 at 17:19 UTC | |
|
Re: Better Way to Combine Two Arrays
by chip (Curate) on Mar 10, 2004 at 17:46 UTC | |
by bart (Canon) on Mar 11, 2004 at 11:57 UTC | |
by chip (Curate) on Mar 11, 2004 at 14:04 UTC | |
by bart (Canon) on Mar 11, 2004 at 14:07 UTC | |
|
Re: Better Way to Combine Two Arrays
by blokhead (Monsignor) on Mar 10, 2004 at 18:00 UTC |