Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: open vs. sysopen SOLVED (partially)

by melora (Scribe)
on Aug 23, 2004 at 16:05 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found