For example, if you have an array of strings, but the array actually only contains a single string, when you go to iterate over the array instead of giving you the string it will iterator over the characters in the string….but if you have multiple strings in your array then everything works fine (btw the trick is you have to explicitly cast your array to a string array when iterating over it). I’ve gotten hung up for hours on end with things that should be simple, but aren’t. It is simply a wonderful tool…once you understand how it works and have learnt some of the nuances. I’ve only been writing PowerShell (PS) for about 6 months now, and have a love-hate relationship with it. #This is some # code and here is #some more code.įeel free to skip the Preamble and get right to the good stuff.
0 Comments
Leave a Reply. |