How do I -MCPAN install and pass commandline params?

Discussion in 'Perl Misc' started by usenet@DavidFilmer.com, Mar 6, 2007.

  1. Guest

    I have a module which needs to know the path to a library (which is in
    a goofy place on my system). The module's perldocs tell me that I can
    stipulate this with a commandline parameter 'libdir=/dir'.

    I would prefer to install this module via the CPAN module. If I type
    this in a CPAN shell:
    install My::Module libdir=/dir

    the parameter is silently ignored.

    How would I stipulate this parameter within a CPAN install?

    Thanks!
    , Mar 6, 2007
    #1
    1. Advertising

  2. Guest

    On Mar 6, 10:27 am, wrote:
    > How would I stipulate this parameter within a CPAN install?


    A smart Perl dude has advised me that I can do this:

    o conf makepl_arg libdir=/dir
    install My::Module

    And it works :)


    --
    David Filmer (http://DavidFilmer.com)
    , Mar 6, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Barry
    Replies:
    9
    Views:
    423
    Ara.T.Howard
    Sep 15, 2005
  2. fatted
    Replies:
    1
    Views:
    115
    Steve Grazzini
    Jul 25, 2003
  3. yasaswi

    perl -MCPAN -e install

    yasaswi, Jun 6, 2005, in forum: Perl Misc
    Replies:
    1
    Views:
    110
    Mark Clements
    Jun 7, 2005
  4. Stephane Charette
    Replies:
    3
    Views:
    172
  5. Peng Yu
    Replies:
    1
    Views:
    321
    Ron Bergin
    Dec 31, 2009
Loading...

Share This Page