$list = @(
(1,2)
(3,4)
)
$list.count
which flattens the structure and yields 4 instaed of the correct syntax
$list = (
(1,2),
(3,4)
)
$list.count
which yields 2
Once using the wrong pattern there is no escape without help.
This blog is about PowerShell Scripting, therefor it's name is just PowerShell. Ok using german orthografie. I have a Python background and my office duties are databases and reporting related.
$list = @(
(1,2)
(3,4)
)
$list.count
$list = (
(1,2),
(3,4)
)
$list.count
Keine Kommentare:
Kommentar veröffentlichen