Create and fill hash of arrays in Powershell




You can initialize and fill multidimension hashes (arrays) in powershell this way:

$orderIds  = New-Object System.Collections.ArrayList

$orderIds = @{

    ids = @(1,2,3,4,5);

    deps = @('one', 'two', 'three', 'four', 'five')

};




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment





MarkiMarta.com. Notes of web-specialist
Since 2009
18+