in reply to References Looping
Then when you take scalar @unique you know that the count represents real values found and only their unique appearance. Drop the keys enclosing block and the map block if you just want to count plain old defined elements of the "itemcode" array.my @unique = keys %{ { map {$_ => 1} grep defined, @{ $config->{bids}{itemcode} } } };
|
|---|