<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Perl Modules in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884462#M101712</link>
    <description>Hey All,&lt;BR /&gt;&lt;BR /&gt;How do I find out if the following perl modules are installed on my server. Modules are:&lt;BR /&gt;DBI&lt;BR /&gt;Net-Daemon&lt;BR /&gt;PlRPC&lt;BR /&gt;&lt;BR /&gt;Thanks and any help is greatly appreciated.</description>
    <pubDate>Fri, 17 Jan 2003 13:17:35 GMT</pubDate>
    <dc:creator>Ragni Singh</dc:creator>
    <dc:date>2003-01-17T13:17:35Z</dc:date>
    <item>
      <title>Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884462#M101712</link>
      <description>Hey All,&lt;BR /&gt;&lt;BR /&gt;How do I find out if the following perl modules are installed on my server. Modules are:&lt;BR /&gt;DBI&lt;BR /&gt;Net-Daemon&lt;BR /&gt;PlRPC&lt;BR /&gt;&lt;BR /&gt;Thanks and any help is greatly appreciated.</description>
      <pubDate>Fri, 17 Jan 2003 13:17:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884462#M101712</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2003-01-17T13:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884463#M101713</link>
      <description>Hi-&lt;BR /&gt;&lt;BR /&gt;The simple, brute force way to check that perl modules are correctly installed and loadable is to create a test script and try to use them:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use DBI;&lt;BR /&gt;use Net::Daemon;     # I assume you want this&lt;BR /&gt;use PIRPC;&lt;BR /&gt;&lt;BR /&gt;print "Ok\n";&lt;BR /&gt;&lt;BR /&gt;or just:&lt;BR /&gt;&lt;BR /&gt; perl -MDBI -MNet::Daemon -MPIRPC       -e 'print "ok\n"'&lt;BR /&gt;&lt;BR /&gt;I think the CPAN module may have some useful tools, and I'm sure there are more elegant ways to check.  You can put the use statments in an eval { } block to trap exceptions.&lt;BR /&gt;&lt;BR /&gt;-Scott-</description>
      <pubDate>Fri, 17 Jan 2003 13:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884463#M101713</guid>
      <dc:creator>Scott Corzine</dc:creator>
      <dc:date>2003-01-17T13:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884464#M101714</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the mentioned modules aren't those belonging to a usual standard installation.&lt;BR /&gt;&lt;BR /&gt;Thus if they were installed "correctly", what I assume, the Perl MakeMaker module will install them under the sitelib subdir.&lt;BR /&gt;&lt;BR /&gt;Though I could provide you with an ugly Perl one-liner to have Perl check if they are installed, I guess it would be easier to use a regular Unix find.&lt;BR /&gt;&lt;BR /&gt;perl -V:installsitelib&lt;BR /&gt;&lt;BR /&gt;will tell you the start directory from where to search.&lt;BR /&gt;&lt;BR /&gt;All (CPAN) Perl modules have per convention to have filenames like&lt;BR /&gt;&lt;BR /&gt;&lt;MODULE_NAME&gt;.pm&lt;BR /&gt;&lt;BR /&gt;So to look for e.g. DBI.pm&lt;BR /&gt;&lt;BR /&gt;find /opt/perl5/lib/site_perl -type f -name DBI.pm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the other hand you can simply check the presence of a version No. as every CPAN module must define it.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;# perl -MDBI -e 'print "$DBI::VERSION\n"'&lt;BR /&gt;1.30&lt;BR /&gt;&lt;BR /&gt;If it weren't installed you'd get an error message.&lt;/MODULE_NAME&gt;</description>
      <pubDate>Fri, 17 Jan 2003 13:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884464#M101714</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-01-17T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884465#M101715</link>
      <description>What is the -M and -e option mean?</description>
      <pubDate>Fri, 17 Jan 2003 13:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884465#M101715</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2003-01-17T13:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884466#M101716</link>
      <description>If I had noticed that Scott already posted one working method I wouldn't have  submitted my own.&lt;BR /&gt;&lt;BR /&gt;But I'd like to add my suspicion that the suggested eval block wouldn't work because the use statement will be executed at compile time whereas a trapping of the eval block would happen at runtime.&lt;BR /&gt;&lt;BR /&gt;But you could trap a require() of the module.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;eval { require SomeModule };&lt;BR /&gt;if ($@) {&lt;BR /&gt;warn "cannot load SomeModule";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;If the required module is used the OO way it wouldn't matter because you don't need to import any variables or functions in your namespace, but use the OO interface's accessor methods instead.</description>
      <pubDate>Fri, 17 Jan 2003 13:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884466#M101716</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-01-17T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884467#M101717</link>
      <description>-M... is short for "use ...;"&lt;BR /&gt;-e... is the script to run (each -e represents a single perl line, don't forget the ;'s)&lt;BR /&gt;&lt;BR /&gt;see 'man perlrun'&lt;BR /&gt;&lt;BR /&gt;If you're looking for those modules to install DBD::Oracle, note that Net::Daemon and PlRPC are optional, and perl hes to be build `Oracle-Prepared', meaning that libs should start with '-lcl -lpthread':&lt;BR /&gt;&lt;BR /&gt;d3:/wrk 106 &amp;gt; perl -V | grep libs=&lt;BR /&gt;    libs=-lcl -lpthread -lnsl_s -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec&lt;BR /&gt;    perllibs=-lcl -lpthread -lnsl_s -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec&lt;BR /&gt;d3:/wrk 107 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2003 14:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884467#M101717</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-17T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Modules</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884468#M101718</link>
      <description>At the shell type&lt;BR /&gt;&lt;BR /&gt;perldoc perlrun&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;man perlrun&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The -M is another way of loading a module on the interpreter's invocation instead of saying "use" in a script.&lt;BR /&gt;&lt;BR /&gt;The -e tells the Perl interpreter that the next string on the command line that follows is the script to be interpreted&lt;BR /&gt;(similar to grep, sed, awk)&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2003 14:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-modules/m-p/2884468#M101718</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-01-17T14:02:42Z</dc:date>
    </item>
  </channel>
</rss>

