baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:
meaning i wish to retrive 1 from the @array1 than a from the @array2, print the result and than redo the process so that the end result looks something like this:$array1 = [qw(1 2 3 4 5 6 7 8 9 0)]; $array2 = [qw(a s d f g h j k l o)];
is there a solution with a foreach() function, something like:1,a 2,s 3,d 4,f 5,g 6,h 7,j 8,k 9,l 0,o
obviously this doesn't work, but if a could some how parallelize the prosea so that it returns one character from the first arrya than the first from the second one than it prints it and repeats the proces for the second characters in the arrays. thank you , Robertfroeach my $x (@$array1) { return $x; } foreach my $c (@$array2) { return $c; } print qq($x , $c);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parallel procesing
by ikegami (Patriarch) on Apr 06, 2008 at 09:51 UTC | |
|
Re: parallel procesing
by Corion (Patriarch) on Apr 06, 2008 at 09:51 UTC | |
by ikegami (Patriarch) on Apr 06, 2008 at 09:54 UTC | |
by lodin (Hermit) on Apr 06, 2008 at 12:39 UTC | |
by baxy77bax (Deacon) on Apr 06, 2008 at 14:12 UTC | |
by GrandFather (Saint) on Apr 06, 2008 at 21:01 UTC | |
by ikegami (Patriarch) on Apr 07, 2008 at 03:13 UTC | |
|
Re: parallel procesing
by GrandFather (Saint) on Apr 06, 2008 at 20:58 UTC | |
|
Re: parallel procesing
by poolpi (Hermit) on Apr 07, 2008 at 08:30 UTC |