On 10/18/07, Suresh Govindachar <[EMAIL PROTECTED]> wrote: > Johan Holmberg asked: > > > 1) "use Win32API::File qw( :ALL ) " > > 2) use of "constans" like GENERIC_WRITE and FILE_SHARE_DELETE. > > 3) calls to functions like Win32::File::CreateFile > > > > Why are you using those windows specific modules? Perl provides > ways to access files in ways that are platform independent -- > better to code using those functions. > > Show some lines of your code where you use Win32API::File, and we > might be able to show you how to recode without using Win32API. >
As my example showed I need to open files with the flag FILE_SHARE_DELETE. I don't think this is possible using Perls normal "open" or "sysopen". I normally try to avoid platform-specific code (Windows of Linux), but sometimes I'm forced to adapt to the way Windows works. And the filesystem (NTFS) is such an area where there are notable differences between Windows and Linux. /Johan Holmberg _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
