Missing $ on loop variable at Script.pl line 120 #### sub process_customer_data { my $_cust_data = shift; my %customer_data; foreach my $id (keys %$_cust_data) { # do stuff } return %customer_data; }