Manish,
> Also want to know if FLOCK works on Windows 2000 server.
You could consider "LockFile::Simple" module on CPAN. Its available via
PPM if you are using ActiveState's perl on windows. They have a good
working example in the documentation as well.
Cheers
-S.