Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: Unknown compile error - desperationby Anonymous Monk |
on Feb 23, 2004 at 03:13 UTC ( [id://331012]=note: print w/replies, xml ) | Need Help?? |
I agree that the op probably wants an anonymous reference for the value of the %CONFIG{vendors}, but here's a nit.
Your line "'vendors' => qw(Amazon BarnesNoble) " is assigning a list to a scalar. This will result in the first value (Amazon) being assigned to "vendors" Actually, it's assigning an odd number of elements to a hash: 'vendors', 'Amazon', 'BarnesNoble' are the last three.
In Section
Seekers of Perl Wisdom
|
|