Johan Holmberg asked:

  > I have a Perl application that should work on both Windows and
  > Linux.  On Windows I use some of the Windows-specific modules,
  > e.g.  "Win32API::File". So my code have things like:
  > 
  > 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
  > 
  > In all my Perl-files i have "use strict". 
  [...]

  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.

  Or just make your code work first on linux and it will
  "automatically" work on windows.

  --Suresh
  

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to