The peripheral nervous system is divided into the somatic nervous system ( SNS ) and the autonomic nervous system ( ANS ) . The peripheral nervous system is functionally as well as structurally divided into the somatic nervous system and autonomic nervous system .