in reply to Re: while (<FH>) always ends with "Couldnt read from remote file: End of file at"
in thread while (<FH>) always ends with "Couldnt read from remote file: End of file at"

use common::sense; Ick!

While it does many good things, I avoid this module for a couple of reasons:

  1. no strict 'refs'; is an uncommon sensibility. Use it only in those few blocks where it has value.
  2. use utf8; is entirely reasonable in a web app; but, in a command line environment, it completely ignores your terminal's settings and decodes your command line as utf8, no matter how inappropriate.
TJD

Replies are listed 'Best First'.
Re^3: while (<FH>) always ends with "Couldnt read from remote file: End of file at"
by haukex (Archbishop) on Jul 06, 2017 at 13:30 UTC

    I agree on no strict 'refs';, but am not sure what "use utf8; ... decodes your command line as utf8" is supposed to mean (also considering this isn't a oneliner). Are you maybe thinking of use open qw/:std :utf8/; or perl -C instead? (see utf8 vs. open vs. -C)