in reply to Fcntl constants missing
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 } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Fcntl constants missing
by nwetters (Initiate) on Mar 24, 2009 at 13:16 UTC |