Installing the Module

Now, to put this into action, we need to save this module file as Rutabagas.pm and stick it in a directory called Walnuts, which in turn is contained in one of Perl’s library directories. If we don’t have write access to the library directories for our server’s Perl installation, we can stick it in our own personal library directory, making sure to stick an appropriate use lib statement in our script before trying to use the module, as described in Chapter 11.

Get Perl for Web Site Management now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.