open FOO,$path; print #### { local $/; open FOO,$path; $text = readline FOO; close FOO; } print $text; #### print while ();