Re: Converting Perl Script to Module

2006-08-09 Thread Owen Cook
> Does anyone know of any resources to aid in this? > > I have a few scripts which I am trying to turn into modules, however > the functions which run as a script (CGI) do not run as modules > > Any help etc Have a look at these as they may help; http://www.pcug.org.au/~rcook/PerlModule_HOWTO.h

Re: Converting Perl Script to Module

2006-08-09 Thread Mike Martin
On 09/08/06, Beginner <[EMAIL PROTECTED]> wrote: On 9 Aug 2006 at 14:28, Mike Martin wrote: > Does anyone know of any resources to aid in this? > > I have a few scripts which I am trying to turn into modules, however > the functions which run as a script (CGI) do not run as modules > > Any help

RE: Converting Perl Script to Module

2006-08-09 Thread Venkat Saranathan
Mike, I am not sure if I had understood your question correctly. If you're trying to run modules directly in Perl, it won't work. Modules are like dlls/libraries and they provide functionality to the executables (.pl files in Perl). So after writing the modules (.pm), you should write a script

Re: Converting Perl Script to Module

2006-08-09 Thread Beginner
On 9 Aug 2006 at 14:28, Mike Martin wrote: > Does anyone know of any resources to aid in this? > > I have a few scripts which I am trying to turn into modules, however > the functions which run as a script (CGI) do not run as modules > > Any help etc This sounds like a job for modperl. Persuma