in reply to Re^8: Combinations of lists, etc
in thread Combinations of lists to a hash
"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: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Combinations of lists, etc
by tel2 (Pilgrim) on Oct 08, 2019 at 22:16 UTC | |
by AnomalousMonk (Archbishop) on Oct 08, 2019 at 22:41 UTC | |
by tel2 (Pilgrim) on Oct 08, 2019 at 23:02 UTC |