$AssetRecord = { map { $ExcelColumns[$_] => $Data[$_] } 0..$#Data } ;
map will create the full list of pairs and then you create an anonymous hash with outer {}.
In reply to Re: Record creation in nested loops
by deibyz
in thread Record creation in nested loops
by Ninthwave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |