in reply to Does XCode 4 break Perl?

Send a perlbug and until it's fixed just say use constant O_RDONLY => 0; . If it then complains about O_WRONLY etc then look for these constants in your sys/fcntl.h and repeat until crisp.