In "The Swiss Family Robinson," Jack does not specifically understand a fallacy about porcupines. The novel focuses on the Robinson family's struggle for survival on a deserted island, and porcupines are not a significant element of the story.
It's possible you're thinking of another book or film. Could you provide more context or details about the specific story you're referring to?