Perl_beginner wrote:
> 
> Hello all,

Hello,

>  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)

perldoc perlport
perldoc perltrap
perldoc perlwin32
perldoc perl[your operating system]


>  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.

No, that is not the case.  The Windows shell (command.com) requires the
separator to be '\' however perl "talks" directly to the OS which allows
the use of '/'.


>  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.

perldoc ExtUtils::MakeMaker


>  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.

The modules in the File hierarchy should be portable.

perldoc File::Basename
perldoc File::Spec
perldoc File::Path
perldoc File::Glob
etc.



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to