![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Calling a hash through an array valueby c (Hermit) |
on Jan 08, 2003 at 21:11 UTC ( #225354=perlquestion: print w/replies, xml ) | Need Help?? |
c has asked for the wisdom of the Perl Monks concerning the following question:
I've been struggling with this for about an hour and I feel like I am dancing around the answer, but just not getting it. You can see I have problems understanding references... I pass over an array in a for loop and want to stuff values into a defined hash. The hash being called is created from a value within the array
I'd then like to put other array values into this hash within the same for loop
I receive the error about can't use string as hash ref while strict refs. So I tried
but still it was a no go. Can someone please school me on the correct manner of doing this? I'll beat it into my skull by day's end. thanks very much -c
Back to
Seekers of Perl Wisdom
|
|