in reply to Record creation in nested loops

I'm not sure if I'm understanding correcly the question, but isn't something like this what you're searching for:

$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

    Spot on thank you very much.


    "No matter where you go, there you are." BB