Hello all, Thanks for the reply James, A resolution to the first issue will help me handle 1. Platform specific OS signals 2. Platform specific File system operations (eg. cp versus copy)
Maybe there is a package that will help me clear 2. - Santosh ------- Original Message ------- > From: James Edward Gray II <[EMAIL PROTECTED]> > To: perl_beginner <[EMAIL PROTECTED]> > Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: Re: Writing Platform Independant Perl Code > Date: Fri, 13 Jun 2003 12:59:44 -0500 > > > On Friday, June 13, 2003, at 12:51 PM, perl_beginner wrote: > > > 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]