... something that I have to learn about these braces
$MasterHash{$mvr} = { map { split /:/; } @array1 };
^ ^ ^ ^
| | | |
| + sub block + |
| |
+ anon hash ref constructor +
See perlref for anonymous reference constructors (in particular, Making References section 3 for the anon hash ref constructor) and also perlreftut. See map for the function of the sub(routine) block.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Adding an element of an array as a key for a Hash, and remaining elements as its value (would also be a hash)
by AnomalousMonk
in thread Adding an element of an array as a key for a Hash, and remaining elements as its value (would also be a hash)
by abhiram10
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |