That was a good one, Gyan. Misplaced modifiers often give rise to funny and bizarre meanings. Presumably, you were in your pajamas when you shot an elephant. So, it should be: "In my pajamas, I shot an elephant one morning." In this way, the modifier comes immediately before the subject it is meant to modify.
Here's another one: The vampire surfed the Internet for potential victims with razor-sharp teeth.
Now, who had those sharp teeth?