Pinworm eggs become infective within a few hours after being deposited on the skin around the anus and can survive for 2 to 3 weeks on clothing, bedding, or other objects.continue