Just like in C, I can pass a reference to a list to be modified and it will be modified!
Please demonstrate, with working and tested Perl, how to take a reference to a list without using an array. At that point, I will believe that Perl supports mutable first-class lists as data structures (instead of multiple items on the Perl stack or a series of comma-separated expressions in source code).
In reply to Re^10: Perl vs C
by chromatic
in thread Perl vs C
by santhosh_89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |