Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

open vs. sysopen SOLVED (partially)

by sheep (Chaplain)
on Dec 27, 2003 at 20:08 UTC ( #317219=note: print w/replies, xml ) Need Help??

in reply to open vs. sysopen

Hello again,

The problem is solved, but I have to confess I still don't know what was causing it.
I followed sgifford's idea and oddingly got 513 as a result. On all systems, I got access to, the result was 577.

As I had to finish the code and have it working by this afternoon, I gave up proper debugging and blindly reinstalled relevant modules. (I know, I know - shame on me!)
Fresh install fixed my problem.
It wasn't an issue with the Perl binary package in Slackware - default package was removed and Perl 5.8.2 was installed from the source code.
I cannot guarantee nobody was messing with module (not only I have access to this system), but it seemed to me so improbable and absurd that I didn't bother with checking it.

Anyhow, I would like to thank all of you for your help and ideas, and also say sorry for not fixing it the proper way finding the source of the problem.

Unfortunatelly this time (even though the problem is fixed):
sheep - perl : 0 - 1
But I will see you again perl!


Replies are listed 'Best First'.
Re: open vs. sysopen SOLVED (partially)
by melora (Scribe) on Aug 23, 2004 at 16:05 UTC
    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.

      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://317219]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-11-29 18:49 GMT
Find Nodes?
    Voting Booth?

    No recent polls found