in reply to binmode and one-liners

perl -Mopen=IN,:bytes

Replies are listed 'Best First'.
Re^2: binmode and one-liners
by BrowserUk (Patriarch) on Jun 30, 2007 at 11:09 UTC

    Thankyou Anonymonk. That's perfect. I've never even noticed the open pragma before.

    I'm assuming that *ARGV is always opened using a 2-arg open rather than a 3-arg that wouldn't be affected.


    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.
      Yes, that magic hasn't changed