"In the first, two different anonymous array references are being constructed. In the second, ..."
So how can we use this concise & convenient "x 2" syntax to generate the former?
I think you understand this already, so I'll answer just for the sake of completeness: You can't. The x operator (see perlop) makes exact copies either of the elements of a list, the copies of which form another list, or of a string | a scalar, which is a string or stringized "thing" (number, reference, whatever), the copies of which are then contatenated together. And it's not possible to get different things if you're making exact copies of a thing (if you're doing it right).
Give a man a fish: <%-{-{-{-<
In reply to Re^9: Combinations of lists, etc
by AnomalousMonk
in thread Combinations of lists to a hash
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |