rocketperl has asked for the wisdom of the Perl Monks concerning the following question:
for my $g (@cg) { if (grep $_ eq $g, @gl) { push @ind,$_; print N "$g\n"; #below is where iam trying to print the #correspond +ing index val. print S "$csta[$g]\n"; }}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to refer the index of an array to another array of the same length
by CountZero (Bishop) on Aug 03, 2013 at 09:55 UTC | |
|
Re: how to refer the index of an array to another array of the same length
by Athanasius (Archbishop) on Aug 03, 2013 at 09:34 UTC | |
by rocketperl (Sexton) on Aug 03, 2013 at 09:56 UTC | |
by CountZero (Bishop) on Aug 03, 2013 at 10:03 UTC | |
by rocketperl (Sexton) on Aug 03, 2013 at 10:20 UTC | |
|
Re: how to refer the index of an array to another array of the same length
by rjt (Curate) on Aug 03, 2013 at 10:41 UTC |