good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: binmode and one-linersby BrowserUk (Patriarch) |
on Jun 30, 2007 at 09:35 UTC ( [id://624183]=note: print w/replies, xml ) | Need Help?? |
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:
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.
In Section
Seekers of Perl Wisdom
|
|