I been looking at this I think a hash table is perfect (if understand where your going)
Let me know if this is what your looking for
$data = @{}
("a","b","c") | foreach{$data.$_ = "xx$_"}
$data
Output:
Name Value
---- -----
a xxa
b xxb
c xxc
Main Topics
Browse All Topics





by: BSonPoshPosted on 2008-01-28 at 16:26:42ID: 20764336
Why do you think you will need a multi-dimensional array
Simply put in Powershell it just doesn't seem needed. You can already nest arrays.
$MyBaseArray = @()
1..10 | %{$internalArray = 11..20;$MyBaseArray += $internalArray}
$MyBaseArray
Perhaps if I better understand what your attempting I can help.