in reply to Re: binmode and one-liners
in thread binmode and one-liners

The problem is, as identified by bart, that binmode affects the open file associate with a filehandle. Besides that a BEGIN block will happen before the file is opened, the diamond operator can also open multiple files, each of which would need to be binmoded.

I keep thinking about some sort of tieing of *ARGV in a BEGIN block?

If that could be made to work and stuck in some suitably short named module, the you could do something like:

perl -margvb -ne" ... * files

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."