in reply to File Slurping Problem in Win32 machine

binmode

After Compline,
Zaxo

  • Comment on Re: File Slurping Problem in Win32 machine

Replies are listed 'Best First'.
Re: Re: File Slurping Problem in Win32 machine
by fletcher_the_dog (Friar) on Sep 17, 2003 at 15:40 UTC
    Is binmode the same as using the pragma  use open IN=>":RAW";? I ask because I tried this pragma and it did not work.

      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