in reply to open vs. sysopen SOLVED (partially)
in thread open vs. sysopen

Not to re-open an old wound, but I ran across something this weekend which might be relevant: I was porting a Perl script which I wrote from Win32 systems to both MacPerl and to FreeBSD, and found that my open calls, such as
open(FH, '>', 'Myfile.txt');
needed to be rewritten as
open (FH, '>Myfile.txt');
The error message I was getting was "too many arguments", so this may be something entirely different from the above problem, but it did make me come back and have a look at this thread. Anyway, here it is, just in case it helps someone.

Replies are listed 'Best First'.
Re^2: open vs. sysopen SOLVED (partially)
by BrowserUk (Pope) on Aug 23, 2004 at 19:30 UTC

    Sorry? Are you saying that you couldn't use the 3-arg open on Win32?

    If so, could you post an example program that demonstrates that.

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon