The wormsorter is an instrument analogous to a FACS machine that is used in studies of Caenorhabditis elegans, typically to sort worms based on expression of a fluorescent reporter. Here, we highlight an alternative usage of this instrument, for sorting worms according to their degree of colonization by a GFP-expressing pathogen. This new usage allowed us to address the relationship between colonization of the worm intestine and induction of immune responses. While C. elegans immune responses to different pathogens have been documented, it is still unknown what initiates them. The two main possibilities (which are not mutually exclusive) are recognition of pathogen-associated molecular patterns, and detection of damage caused by infection. To differentiate between the two possibilities, exposure to the pathogen must be dissociated from the damage it causes. The wormsorter enabled separation of worms that were extensively-colonized by the Gram-negative pathogen Pseudomonas aeruginosa, with the damage likely caused by pathogen load, from worms that were similarly exposed, but not, or marginally, colonized. These distinct populations were used to assess the relationship between pathogen load and the induction of transcriptional immune responses. The results suggest that the two are dissociated, supporting the possibility of pathogen recognition.