예를 들어이 걸릴 :
$var = "one","two","three"
0..2 | select-object $var[$_]
Index operation failed; the array index evaluated to null.
At line:1 char:27
+ 0..2 | select-object $var[ <<<< $_]
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
왜 $ _ 널인가?
Ahh foreach. 그것은 그 일을합니다. 고맙습니다. :) –
항상 도와 드리겠습니다! –