in reply to Re: Removing the first record in a file containing fixed records
in thread Removing the first record in a file containing fixed records

What makes you so sure it won't work on Windows?

The :raw IO layer is equivalent to the binmode and I see no unixisms in your code that would prevent the program from working on Windows.

I just saw - you're opening the same file twice. This won't work under Windows - you'll have to seek back and forth in the one file to copy the data from the end to the front.

Update2: I tested your code on Win32 and it just works.

Replies are listed 'Best First'.
Re^3: Removing the first record in a file containing fixed records
by jwkrahn (Abbot) on Jul 18, 2008 at 07:54 UTC

    I don't use Windows so I have no way to verify if it does or does not work there, sorry.