PowerShell Variables and Data Structures
It’s time to really understand what we mean when we talk about variables. Variables are a common concept in computer science and mathematics, so it’s important to have a good grasp of what they are and how they are used in PowerShell.
We’ll start by exploring what a variable is, both literally and metaphorically. We will look at how we can use them in PowerShell and contrast the way PowerShell works with other languages. We will explore the concept of primitives, the basic building blocks of data, before moving on to the common data structures that PowerShell uses. Finally, we’ll have some fun with splatting, an important and useful technique for simplifying cmdlets.
In this chapter, we’re going to cover the following main topics.
- Understanding PowerShell variables
- Exploring object types
- Discovering value types
- Typing explained
- Navigating reference types
- Splatting –...