Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: open vs. sysopen SOLVED (partially)

by melora (Scribe)
on Aug 23, 2004 at 16:05 UTC ( #385128=note: print w/replies, xml ) Need Help??

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 (Patriarch) 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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://385128]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-06-06 09:26 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.