in reply to trying to populate an array from a hash of arrays

Looks like $mc_attr_lookup{$key}->{attrs} isn't an array reference.

Listen to the code :-)

Print it out with Data::Dumper. See what it really is.