Global symbol "%specifications" requires explicit package name at correlations.pl line 162. #### sub Diseases_of_concern { my $number_of_replicates = @_; my %specification = ( 'Disease A' => 'SC', 'Central_comparisons' => { 'Primary' => 'S', # x axis 'Secondary' => 'SC'} # y axis , 'Diseases to run against controls' => { 'First' => 'S', 'Second' => 'SC'} , 'Controls' => { 'A' => 'D', 'B' => 'LC', 'C' => 'COPD', 'D' => 'CHD' } ); my $x_axis_label = %specifications{'Central_comparisons'}{'Primary'}; # Error specific to this line my $y_axis_label = %specifications{'Central_comparisons'}{'Secondary'}; # also this one