in reply to Reference found where even-sized list expected

G'day sciguy,

I see you've been shown three different ways to deal with this: here's a fourth.

Change

my %info = get_mp3info($file); my %tags = get_mp3tag($file);

to

my %info = get_mp3info($file)->%*; my %tags = get_mp3tag($file)->%*;

and leave the remainder of your code as is.

That's called "Postfix Dereference Syntax". It became available in 5.20 with a feature declaration; as of 5.24, that declaration is not required. It's not experimental, so quite OK for production code. Follow that link for more complete details.

— Ken