in reply to How can I process large files with while(<>)?

You got the answer already, but I just want to mention one point. This is actually one of the most sweet thing in Perl, a Perl function can work under different context, it understand what you want, and gives what you want, as long as you understand it well. When the return might be in different forms, you can see it just fits in the context/situation so well. So, when you learn a func, always try to understand this aspect of it.
  • Comment on Re: How can I process large files with while(<>)?