If that was a moccasin, you're lucky you didn't get bit. They're very territorial and very aggressive. They're permanently in bad moods, will bite because you're in their turf then bite again because you didn't leave soon enough after the first bite.

I had to work around them my first summer break during college. I went to summer school from then on.