I understand what the code is doing (ie: setting the keys for the hash %fields equal to the elements in the array @fields). What I don't understand is why it works. What is the autoincrement doing? Can anyone explain this?grep ($fields{$_}++, @fields);
Thanks.
In reply to Use of grep with arrays/hashes by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |