download Modules from CPAN and then load into Perl Question

From: Chad (c-paul_at_netexpress.net)
Date: 10/15/04


Date: Fri, 15 Oct 2004 14:07:36 -0500

Hello,

 I am still in the first week or 2 of trying to learn Perl and get my
servers patched to what I need. I have a question about the Perl modules.
DO all Perl *.pm files require you to compile or can some be just
downloaded and placed into the proper directory?

The Red Hat 7.3 server directory (upgrading Linux is not an
option at this time)
/usr/lib/perl5/5.6.1/

has tons of *.pl and *.pm files.

I downloaded from CPAN via the web page the source files for HTML::Template
, Mail::Sender , HTML::Template::Set and HTML::Embperl

The files are Embperl.pm , Sender.pm , Set.pm , Template.pm

Can I just copy these files over to the

/usr/lib/perl5/5.6.1/ directory and use them? Assuming
all extra needed pm files are there?

That is just my guess. I have tried to download some of these via CPAN
utility and it either does not find these or I do not have it typed in fully
correct. I have downloaded some items and CPAN compiled and installed them
fine. I have downloaded the Template.pm file and tried doing the make
commands and it did not work.

How do you know if a *.pm needs to be compiled with the make file command
or not? I read in one post or readme file that said something like if you
do not see a .c or .h file it does not need to be compiled.

My first thoughts on how the files in the directory look and how they look
when I download them to my computer, they appear to look the same
filename.pl or filename.pm

Sorry I am so new to all this.

Chad



Relevant Pages

  • Re: newbie question
    ... [This followup was posted to comp.lang.perl.misc] ... > complexity of even installing perl. ... > I know I have to compile the Perl source code. ... So I followed the instructions to download a C compiler, ...
    (comp.lang.perl.misc)
  • Looking for help compiling Calendar::CSA
    ... I'm trying to compile the above Perl module from cpan. ... line 129: warning: argument #1 is incompatible with prototype: ...
    (comp.lang.perl.modules)
  • Re: New modules for Fedora Core
    ... > cpan Expect ... > of how perl was compiles during the initial install of the FC4 system. ... > Is there a way to download these modules directly from Red Hat so they ...
    (perl.beginners)
  • Re: FC2 and Webmin
    ... > managed to download this from freshrpms, but that still gave me the same ... > downloading the .tar but that did not compile. ... tettnang.freshrpms.net does not have the Perl Net::SSLeay module. ... Fedora GNU/Linux Core 2 kernel 2.6.8-1.521smp ...
    (Fedora)
  • Re: any tools to enable test automation for scripting language like perl?
    ... Simply download the sources to perl and watch what happens as ... you compile it. ...
    (comp.lang.perl.misc)