If you change my @other = shift; (which simply copies the first parameter to the sub into @other) to my @other = (@_); which generates an array containing all the parameters passed in and assigns that to @other.
Using the line "firstsomethingsecond
nextsomethinganother
" as the data the test code generates:
in sub: first second in sub: next another in main: first second in main: next another in main: in other sub: first second in other sub: next another in other sub:
In reply to Re: size of an array of hash
by GrandFather
in thread size of an array of hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |