If your file is delimited by any particular character or sequence of
characters, you could redefine the special variable $/ to something other
than the default newline character. For example, to read a
single line one word at a time:
{
local $/ = ' ';
while (<>) { print }
}