Finding out how much fun arrays in PowerShell are compared to other languages.
Here's what I start with:
$testArr = (1,2,3),(4,5,6)
Here's what I want to end up with: (1,2,3,0),(4,5,6,0)
And what I've tried to get it: foreach($x in $testArr) { $x += 0 } and $testArr | % { $_ += 0 }
However, when I try to output $testArr, I get what I started with: (1,2,3),(4,5,6). I put a call to output the current array being worked with in the loop and see the 0 is in the array after adding it (+= 0), but for some reason, it doesn't want to stick around when I output the 2-D array. What aspect of PowerShell arrays am I missing?