The only difference is the way in which the array element is selected...
Another difference is that the second one doesn't have a concatenation operator right after print. Using B::Deparse (with -p), we see that it is interpreted this way:
foreach my($xy) (@$tmp) { ((print($_) . ', ') . $xy); }
Remove that dot, and it should work the way you want it to.
In reply to Re: Arrays of hashes which have arrays
by kyle
in thread Arrays of hashes which have arrays
by LesleyB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |