http://www.perlmonks.org?node_id=385128


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.