in reply to ActivePerl 5.6.1 Win32 munging CR/LFs

The example above (which I copied and ran) is not reading or writing to a file except STDOUT. Can binmode effect STDIN/STDOUT/STDERR?

The scalar assignments exhibit this behavior (assignments mind you) as shown (asked) in the original question above. Can anyone tell me why this is?

My code example above was given as a way to store \x0a\x0d for use by the reader program since flipping it any other way with double quote interpolation (without PACK) elludes me. Is there another way to store hex 0a0d without using pack?

  • Comment on Re: ActivePerl 5.6.1 Win32 munging CR/LFs

Replies are listed 'Best First'.
Re: Re: ActivePerl 5.6.1 Win32 munging CR/LFs
by Hofmator (Curate) on Jul 25, 2001 at 14:53 UTC

    Can binmode effect STDIN/STDOUT/STDERR?
    Yup, see for example this.

    -- Hofmator