in reply to One-liner: -i without .bak?

I think you will find that this is something to do with the fact that you can't have anonymous filehandles on windows - i.e. the file can't be unlinked when it is open. I can't remember where this is documented though.

/J\

Replies are listed 'Best First'.
Re^2: One-liner: -i without .bak?
by Fletch (Bishop) on Jul 21, 2005 at 18:47 UTC

    Aaah, I stand corrected. Looking through perl.c looks that on Cygwin it will automagically use .bak. The OP didn't specify platform but that's a plausible explanation.

    --
    We're looking for people in ATL