use constant HAS_FLOCK => eval { flock STDOUT, 0; 1 };
If the flock fails, eval will return undef. If it succeeds, eval returns 1. In reply to Re^2: Interesting issue with DBD::AnyData?
by jZed
in thread Interesting issue with DBD::AnyData?
by blue_cowdawg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |