You've only modified array @list again. No lists were modified.
You're also wrong about there being no return value. It's just being ignored.
In reply to Re^10: Perl vs C
by ikegami
in thread Perl vs C
by santhosh_89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |