in reply to Re: File Slurping Problem in Win32 machine
in thread File Slurping Problem in Win32 machine

Is binmode the same as using the pragma  use open IN=>":RAW";? I ask because I tried this pragma and it did not work.

Replies are listed 'Best First'.
Re: Re: Re: File Slurping Problem in Win32 machine
by Zaxo (Archbishop) on Sep 17, 2003 at 15:52 UTC

    Yes, but it's spelled ':raw'. A third way (in recent perl) is to attach the discipline to the mode argument of open, open INPUT, '<:raw', '/path/to/whatever.dat' or die $!;

    After Compline,
    Zaxo