in reply to Re: Global symbol requires explicit package name
in thread Global symbol requires explicit package name

You appear to be attempting to assign to a scalar from a hash key (also a scalar)
Instead of: my $x_axis_label = %specifications{'Central_comparisons'}{'Primary'}; Try: my $x_axis_label = $specifications{'Central_comparisons'}{'Primary'};
same for the second line.