Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] Perl modules usage&path

Expand Messages
  • merlyn@stonehenge.com
    ... Moron Is there a way to use use() with absolute path in conjuction ? For Moron example,have an old DBI modules installed in system directories (like
    Message 1 of 2 , Dec 29, 2006
      >>>>> "Moron" == Moron Moroncic <moroncic@...> writes:

      Moron> Is there a way to use use() with absolute path in conjuction ? For
      Moron> example,have an old DBI modules installed in system directories (like
      Moron> : /usr/lib/perl5/5.8.8 or so),but would like to use the same module
      Moron> from another directory (like : /tmp/module/DBI.pm) ?

      Add a "use lib" before your other use:

      use lib "/tmp/module";
      use DBI;

      "perldoc lib" will give you details.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.