in reply to Having a problem creating a hash with the map function
I also noticed the script is missing warnings turned on.my $skip_first; my %Belfast_car_dealer_hash = map { $skip_first++ ? ($_ => 1) : () } @{ $car_city_dealer_aoa[0] }; print Dumper \%Belfast_car_dealer_hash;
|
|---|