in reply to `cat $myfile`; vs. open(MYHANDLE, "myfile")

While `cat $myfile` isn't that efficient, it shouldn't hang your program. What you're seeing is consistent with $myfile containing something funny, like an empty string, a dash, or possibly spaces; is that possible?

Update: Fix typo (dash not dasy)