So I have the following code and am wondering why the last 3 values are returning System.Collections.DictionaryEntry
$count = 1
Function CreateHash($name, $address, $city, $state, $zip){
return @{"name" = $name; "address" = $address;"city" = $city;"state" = $state; "zip" = $zip}
}
while ($count -lt 6){
Write-host "This program will ask the user for the names and \n some other information about these people!"
$name = Read-Host "Please enter the name of person $count"
$address = Read-Host "Please enter the address of person $count"
$city = Read-Host "Please enter the city of person $count"
$state = Read-Host "Please enter the state of person $count"
$zip = Read-Host "Please enter the zip of person $count"
$hash1 = CreateHash $name $address $city $state $zip
Write-Host $hash1
$count++
}
$nullwhere/when? What is happening exactly? - Etan Reisner