Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: open vs. sysopen

by Aristotle (Chancellor)
on Dec 26, 2003 at 22:35 UTC ( [id://317135]=note: print w/replies, xml ) Need Help??


in reply to open vs. sysopen

I can't reproduce this on my fairly similar system.

Are we talking about the same values of $ggg here for all invocations?

Have you made sure the sysopen variant fails consistently? How many times did you try, under what circumstances? Was this the only thing you changed in your code and its environment (such as user ID etc) between test runs?

I know these questions are fairly basic, and I didn't initially reply because I have no idea why it would fail. I was hoping that someone else would be able to pinpoint the issue. However, since there doesn't seem to be anything in your code that explains the failures you're experiencing, I guess we need to go looking elsewhere instead of guessing blindly (and badly (including not reading the question)).

Makeshifts last the longest.

Replies are listed 'Best First'.
"fairly basic" answers
by sheep (Chaplain) on Dec 27, 2003 at 01:03 UTC
    1) $ggg is not the same (in some cases it is created randomly) for all invocation in the original code, however for debugging I changed it to a static name, and the error stays the same.
    2) Yes, sysopen() fails consistently.
    3) I tried it 100++ times.
    4) Yes, the only thing I changed was to comment out open() call and uncomment sysopen(). UID stays the same. Also, I made sure the directory had the right permissions.

    Thanks for the help.
    -sheep

      So nothing else interferes. In that case, there's not much else left to say but "it's (probably) a bug". :/ Now the question is is it a bug in Perl proper, per se - in which case you should take a look at perldoc perlbug -, or is it an issue with the Perl binary package in Slackware, in which case you'd have to report to Patrick or something. (There doesn't seem to be any anoynmous address @slackware.com for bug reports or such, oddly enough.)

      Makeshifts last the longest.

Log In?
Username:
Password:

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

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

    No recent polls found