in reply to Re^3: Reading multiple files one line at a time from arguments
in thread Reading multiple files one line at a time from arguments

You can assign to $. directly. It might tell the purpose more clearly.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^4: Reading multiple files one line at a time from arguments

Replies are listed 'Best First'.
Re^5: Reading multiple files one line at a time from arguments
by davido (Cardinal) on Jun 19, 2014 at 08:40 UTC

    It might be clearer, though you would still need to detect eof. And the method I used is the one documented in eof. So I can't decide if I fully agree or not. Either way we're probably relying a little too much on Perl's cleverness, at the expense of legibility. But tinkering with Perl's cleverness can be entertaining at times. :)


    Dave