Dear Monks:
the following code will print 123456789, leaving @array2 empty.
I wonder why PERL will join the 2 array parameters into array1, and how could I pass several list to a sub routine?mysub((1..5),(6..9)); sub mysub{ my (@array1,@array2) = @_; print @array1; }
In reply to why perl joins multy list parameters to one list by Achilles_Sea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |