in reply to Re^4: Need to search for a string in a file
in thread Need to search for a string in a file

Interesting. Maybe someone who knows how to use the debugger better than I do could try it and see where the memory is going.

Perhaps the <$fh> syntax only works as I'm thinking when used in scalar context? I do seem to remember reading somewhere (camel book?) that there's some extra magic when it's used in a while loop that it doesn't have otherwise.