prints the following
# ab de gh
I though the sort already returns copy of the original values so the chop would affect only these copies and thus only @b. In @a I was expecting
# abc def ghi
This also means that the following code:
@b = map {chop $_} sort qw(ab cd ef);
print "OK\n"
sais:
Modification of a read-only value attempted at -e line 1.
instead of OK
Aliasing (Score:1)
Re:Aliasing (Score:1)