The "EXPR" in "(split ...)[EXPR]" must be
an expression that returns a list of indexes.
In your code, you have
an expression that returns source code that once compiled and executed returns a list of indexes.
Solution:
my $prodKey = join("|",(split/\|/,$$prodRef[$a])[@arrofIndices]);
By the way, $$prodRef[$a] is more readable as $prodRef->[$a]. See Dereferencing Syntax.
In reply to Re: Construct Key by split
by ikegami
in thread Construct Key by split
by libvenus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |