Could someone please confirm that Perl would skip trying to acquire a lock when the first 'if' condition is true?
Should I rather place the test in to a nested condition, completely outside of the first?
if ( (1 == 1) || (!flock $lockfile, LOCK_EX | LOCK_NB) )PS: Things appear to be working as expected, but I would still like to know, for my own peace of mind.
In reply to Re^3: Faster locking
by bbs2web
in thread Faster locking
by bbs2web
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |