adam2000 has asked for the wisdom of the Perl Monks concerning the following question:
From what I understand after reading various docs, the 'flock()' function is not supported on all platforms.
I also understand that if 'flock()' is called on an unsupported system that a fatal error will occur.
Would it be possible to include in my script, a test for the 'flock()' function (maybe using an 'eval'?) so that if it is supported a 'true' indicator is returned otherwise a 'false' indicator is returned?
Can anyone show me the code to do this?
Thanks,
Adam