in reply to Re^3: Find most frequently used word in text file.
in thread Find most frequently used word in text file.

Yes, I used undef $/; because I wanted to slurp the file into a scalar variable (making the subsequent processing slightly simpler). But it would not be necessary to undef $/ in a list context.