This works great. But now I first delete an element from @a. The result is that I endup with and hash with one key == undef. How do I change this expression so undef values are ignored by map ??%b = map{ $_, 1 } @a ;
In reply to from array to hash by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |