Hello all,
I have finished writing up a neat Perl server which works just fine on Linux. I want to see it work seamlessly on other platforms too (Windows/*Nix)
The first issue that I see, is with people who want to use my server on Windows. Directory seperators ('/' -> '\\') have to be changed before the script can be run on Win32. Or atleast I think that is the case.
From past experience, I know that several perl modules come with a Makefile.PL or atleast some way whereby the user can: 1. Unpack the code delivered 2. Specify his platform and execute some script 3. The script preps the code for the platform 3. User can now use the customized application
I have no idea how to go about doing this! Any pointers or resources would be helpful.
I'm not much help here, so I'll leave this question for others.
The second issue, How do I keep pathnames platform independant. This precludes the necessity of writing a solution to install the application on the users machine. Please note that the application accepts some pathnames as command-line parameters.
This is how I handle platform independence. The main module you are looking for here is File::Spec, it makes creating platform specific paths a snap.
Hope this helps.
James
Thank you for your time and attention...
Best Regards, Santosh Dawara Graduate Student Rochester Instt. of Tech.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]