,(array construction operator) has a higher priority than* - seeGet-Help about_Operator_Precedence
Note. The following fragments do not use the array subexpression operator @(...), because there is no need to specify literals in the array - the array construction operator ,is sufficient.
Hence,
2*3, 4*5
analyzed as:
2 * (3, 4) * 5
and PowerShell doesn't know how to use an array in RHS *.
:
(2*3), (4*5) , 6, 20.
: PowerShell LHS *, : LHS () , (, ) RHS - , LHS *:
> (2,3) * 2
2
3
2
3
, , , *, :
PowerShell - -replace -split - RHS.
, , , RHS:
> 'A barl and his money are soon parted.' -replace 'bar', 'foo'
A fool and his money are soon parted.
- -, , , , , , .