in reply to Record creation in nested loops
$AssetRecord = { map { $ExcelColumns[$_] => $Data[$_] } 0..$#Data } ;
map will create the full list of pairs and then you create an anonymous hash with outer {}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Record creation in nested loops
by Ninthwave (Chaplain) on Mar 10, 2005 at 11:53 UTC |