I'm learning on a win98 machine and my webserver is a unix OS.
win98 doesn't support flock and of course unix does.
How can I code to test if the function is supported? I tried conditionals but it still throws the error.
What conditionals did you try? Some common code (stolen from DBI::File):
my $locking = $^O ne 'MacOS' && ($^O ne 'MSWin32' || !Win32::IsWin95()) && $^O ne 'VMS';
if ($locking) { # do locking here }
Or the other option if flock is calling 'die' is to wrap the construct in an eval and catch the exception, and examine [EMAIL PROTECTED]
perldoc -f eval
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]