Peter,

I am no expert on modules and could be completely wrong about this but I
have avoided using modules because I do not want to have to distribute them
with my software. The perl script that my program uses runs in all
environments (Unix, Linux, Windows, etc.). It runs well with modperl, unix
perl, ActiveState Perl, etc.

I agree it's not a good idea to rewrite what an existing module does well
but I like the fact that my program can automatically put its perl script in
the cgi-bin, scripts or any folder and the perl script just works. No
installation is required on the Web server.

Also, the very same script is available in 4 flavors:

All platforms Perl script
Windows platforms Perl script
Active Server Pages PerlScript for Windows platforms
ActiveState PerlApp executable program for Windows

My users can choose between using the all platforms perl script version, the
Windows perl script version, the ASP PerlScript version, or the Windows
executable program version.

The code is almost exactly the same for each of the files (I have a couple
of routines at the end that differ for the ASP vs CGI versions) -- also the
Windows versions check the version of Windows to determine if it's okay to
use flock since file locking is not available in Win95/98/Me.

I have not investigated this thoroughly and perhaps I can be advised how I
can achieve this kind of simplicity AND use a module, but so far it works
well.

I hope this helps.

Richard

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Peter
Verhas
Sent: Tuesday, March 05, 2002 9:17 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: avoid Perl modules?


I can not understand why one wants to avoid using a Perl module. If it is
coded in C, maybe I can understand the lack of C compiler availability or
knowledge to compile the module to binary. However when the module is
written in Perl there is no point. If one wants to solve a problem, but
wants to avoid using the module he/she will end up rewriting all the module
functions by him/herself. If this is a homewrok targeting knowledge build:
OK. But other than that I see no point.

Is there any sound reason not to use modules?

Peter

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to