mavericknik has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks,
So here is my question:
I have an array of names, say
And for each name, I have a corresponding array,my @names = qw(adam jake john betty);
Now I'm trying to do:my @adambooks; my @jakebooks; . . .
What is the easiest way to get the value of "Their corresponding array"?? I expect the answer is simple buy I'm pretty new to perl and cant for the life of me figure it out. Any pointers are greatly appreciated!foreach (@names) { my $cur_name = $_; &modify($cur_name, "Their correspinding array") }
Back to
Seekers of Perl Wisdom