in reply to How else can I read from a file without using a while loop, testing for the EOF?

As i know, the most efficient method is to set the input record separator to nothing like the following snippet:

$/ = undef; $wholefile = <FILE>;
Roli
  • Comment on Re: How else can I read from a file without using a while loop, testing for the EOF?
  • Download Code