Although a porcupine shotting its quills is a common stunt used in cartoons, porcupines don’t have projectile quills.
As a last resort, after growling and spitting, a porcupine will turn backward and ram itself into enemies.
Quills, like fishhooks, have barbs that make them very difficult to remove without causing a great deal of pain.
It is, again, a porcupine’s last line of defense. In general, porcupines are very docile creatures and easy to tame.
So trusting, as a matter of fact, their number one danger in life is being killed by humans.
People eat them but more often use their hollow quills in rituals of magic and religion, as musical instruments, and as vials for gold powder or other precious liquids or powders.