[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] sysopen



Geoffrey C Kinnel writes:
|Woah. It appears that Paul has the answer, and that I was hasty
|in my reading of perlfunc, but isn't it a little weird that
|0_RDRW would work and 2 wouldn't? 

No, because O_RDWR isn't necessarily 2, it's whatever's needed for the
platform. In the case of the Mac, it appears that's 1.

|When is a constant not a constant? (Perl koan)

2 is a constant, and O_RDWR is a constant *on a specific platform*, not
necessarily across all platforms.

Brian

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org