Sanjay, that is an example of a famous squinting modifier (from Groucho Marx). "In my pajamas" is the modifier, and you have to "squint" to determine who is wearing them. As it stands the sentence's real meaning can not be determined. Without further clarification on the writer's part you do not know for sure.