d2caetano has asked for the wisdom of the Perl Monks concerning the following question:
I need to convert the following into forloops.
Thanks for help.
my @matrix=([qw(1 2 4 4)],[qw(5 2 0 8)],[qw(9 10 11 12)],); my @t = map{my $c=$_; my $z=1;[grep $z&=/[^0]/, map{$matrix[$_][$c]}0. +.$#matrix]}0..$#{$matrix[0]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl For loops
by ikegami (Patriarch) on Jul 03, 2007 at 21:14 UTC | |
|
Re: Perl For loops
by Util (Priest) on Jul 03, 2007 at 21:08 UTC | |
|
Re: Perl For loops
by cdarke (Prior) on Jul 03, 2007 at 20:28 UTC | |
by naikonta (Curate) on Jul 04, 2007 at 01:48 UTC | |
by cdarke (Prior) on Jul 04, 2007 at 10:42 UTC | |
|
Re: Perl For loops
by aufflick (Deacon) on Jul 04, 2007 at 06:41 UTC | |
by atemon (Chaplain) on Jul 04, 2007 at 07:31 UTC | |
by aufflick (Deacon) on Jul 06, 2007 at 03:34 UTC | |
|
Re: Perl For loops
by toolic (Bishop) on Jul 03, 2007 at 20:53 UTC |