Read this chapter of
Ovid's Beginners Perl book->
sort_comma_map_and_grep.html. Scroll down about 60% of the page to the section called Aliasing Issues. It will explain the situation.
As a matter of fact, read the whole book online for free! It's very informative. At Ovid's Beginning Perl