libvenus has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I m trying to make a key by splitting a row separated by pipes.The key would be a concatenation of all the element values stored at indexes which are themselves in a list.
So after spliting i just want to pick those elements and join them with pipe and form my key.
How can i do that ?
my $indexes = join(",",@arrofIndices); my $prodKey = join("|",(split/\|/,$$prodRef[$a])[$indexes]);
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Construct Key by split
by Tanktalus (Canon) on Sep 10, 2008 at 04:55 UTC | |
|
Re: Construct Key by split
by ikegami (Patriarch) on Sep 10, 2008 at 05:06 UTC | |
by libvenus (Sexton) on Sep 10, 2008 at 11:31 UTC | |
|
Re: Construct Key by split
by GrandFather (Saint) on Sep 10, 2008 at 04:56 UTC |