I got stuck in the forehead by one of the spines Wednesday and it is still sore. It bled a lot Wednesday. Yesterday I popped it and some pus came out. It is still red and sore. I just want to check and make sure the spines are not poisonous or anything. This tree is in our back yard. We live in Anderson, SC. It was something my father-in-law had planted years ago. We live in the house now. My mother said it was a palm, but that's all she knows.
This is a member of the Yucca genus. There are numerous species with a wide range from Central America to southern Canada. Although the spiky leaves are a hazard the large white flowering stalk is very attractive and these plants are grown and planted for the landscape trade.
It is not poisonous and a little first aid should resolve your wound.
If this plant is poorly situated near your house a bit of work with scissors will cut down on the sharp points of the leaves. If it's not on your property then giving it a wide berth will have to do.