in reply to Use modules or roll your own?

I work in an environment where developing new code is easier than attempting to get a CPAN module installed. In this case, it is often easier to reinvent the wheel in the way I need it, and install the code in my own modules, than spend months try to get "unsupported" code installed.

Often I have to do it two ways. I can experiment at home all I want with the CPAN modules, while I dig throught its guts trying to figure it out. At work, I have to reimplement the idea for my specific task so as not to infringe on any licenses.

Replies are listed 'Best First'.
Re: Re: Use modules or roll your own?
by ichimunki (Priest) on Jul 29, 2002 at 18:35 UTC
    I work in an environment where developing new code is easier than attempting to get a CPAN module installed.

    Wrong. If you can write a script and run it, you can install a Perl module for use with that script. There are at least two options:

    • install the module tree in the same directory with your script and use lib '.';use Module::Name;
    • for pure Perl, download the module, copy and paste the relevant bits into your script (advantage of retaining appearance of single script)
      I know I can do these things, however, doing these things are not possible given the environment I work in. Also, if I copy and paste from a module to a script, I will likely violate the license of the modules.