You were lucky there, a bit too close for comfort.
It’s odd that I have never seen a live poisonous snake since we moved here to Boondock Central four years ago. Lots of king, black racers, and rat snakes, yes, but I let them be.
Compare that to me killing two small copperheads in my backyard in the Dallas suburbs. One was coiled up under a zucchini bush, and another was in some deep grass by the back door. Quite alarming to say the least!