I am using flock in the script but would like to use 'Fcntl' variables, just want to confirm two things.
1. Can I replace flock(FH, 2); safely with flock(FH, LOCK_EX); without making any other changes.
Or should I also Add.....
use Fcntl qw(:DEFAULT :flock);
in my script?
Thanks for input.
Zeshan.
1. Can I replace flock(FH, 2); safely with flock(FH, LOCK_EX); without making any other changes.
Or should I also Add.....
use Fcntl qw(:DEFAULT :flock);
in my script?
Thanks for input.
Zeshan.