I think this is how you can do it:
eval { $SYSOPEN_MODE |= &{ $Fcntl::{'O_NONBLOCK'} }; }; if($@) { if($@ =~ /Your vendor has not defined/) { # OK, we don't have O_NONBLOCK } else { die "$@"; # Rethrow exception, must be something different } }
In reply to Re: Fcntl constants missing
by rovf
in thread Fcntl constants missing
by nwetters
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |