in reply to chop() and list assignments

Why not do this:
perl -e "@m=('hal', 'bob', 'didi'); sub foo {substr(@_[-1],-1) }; prin +t &foo(@m); print qq(\n@m);"
which does not change the values passed to foo at all?

Celebrate Intellectual Diversity