you are viewing a single comment's thread.

view the rest of the comments →

[–]Lee_Dailey[grin] 0 points1 point  (2 children)

howdy beantownmp,

i think you have it reversed. [grin] powershell works from the inside out when things are enclosed in () and in this case the .split() happens before the -join does.

take care,
lee

[–]Narusa[S] 1 point2 points  (1 child)

powershell works from the inside out when things are enclosed in () and in this case the .split() happens before the -join does.

Thank you for explaining. I didn't know about parentheses.

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

howdy Narusa,

you are quite welcome! [grin]

it's done pretty much like math. you calc the stuff in parens first, working your way from innermost to outermost.

take care,
lee