develooper Front page | perl.module-authors | Postings from November 2003

RE: How to indicate a dependency in my module

Thread Previous | Thread Next
From:
Sherzod Ruzmetov
Date:
November 10, 2003 12:01
Subject:
RE: How to indicate a dependency in my module
Message ID:
000801c3a7c5$bdb77a60$dc024544@sherzodwgibb4u


    : Where must I indicate that this module have a dependency? 

You have to indicate it in your Makefile.PL. Here is an example of a
Makefile.PL:

WriteMakefile(
    NAME	=> 'Class::PObject',
    VERSION_FROM=> 'PObject.pm',
    PREREQ_PM	=> {
	    'Storable'      => 0,
	    'IO::Dir'       => 0,
	    'Test::More'    => 0,
	    'Log::Agent'    => 0,
        'File::Spec'    => 0,
        'File::Path'    => 0,
        'File::Basename'=> 0
    },
    ABSTRACT	=> "Simple framework for programming persistent objects",
    AUTHOR	=> "Sherzod B. Ruzmetov <sherzodr\@cpan.org>"
);


Note, how it's defining list and min. versions of dependencies


--  
Sherzod Ruzmetov

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About