Hi Priyal, please reply to all recipients / to the list.
On Fri, 16 May 2014 08:41:02 +0000 Priyal Jain <jpri...@juniper.net> wrote: > Hello, > > I am uploading my module Net::Netconf > http://search.cpan.org/search?mode=all&query=net%3A%3Anetconf in CPAN, but > its giving error of dependency not found for Bundle::Expect. I am mentioning > all my dependency in Makefile.Pl It's "Makefile.PL" with a capital "L" - not "Makefile.Pl". <CODE> use ExtUtils::MakeMaker; our $VERSION ='0.01'; use 5.006; WriteMakefile( NAME => 'Net-Netconf', AUTHOR => 'Juniper Networks, Inc', VERSION_FROM => 'Makefile.PL', PREREQ_PM => {'XML::LibXML'=> '0', 'File::Which'=> '0', 'Bundle::Expect'=>'0',}, ABSTRACT => 'netconf libraries for perl', ); </CODE> > > But its giving error. Kindly help me. > > > Thnanks, > Priyal > 1. You need "use strict;" and "use warnings;" there. 2. "VERSION_FROM" => "Makefile.PL" is a bad idea - put it in the lib/Net/Netconf.pm module. 3. CPAN Testers is happy enough - do you have good test coverage: http://www.cpantesters.org/distro/N/Net-Netconf.html?oncpan=1&distmat=1&version=0.01 4. Which error are you getting? 5. CPANTS is not happy at all - see http://cpants.cpanauthors.org/dist/Net-Netconf - you should correct most of these problems. 6. I'm not sure one can easily depend on Bundle::Expect. Maybe specify the modules that you actually use (always a good idea). 7. See http://perl-begin.org/tutorials/bad-elements/ (note: perl-begin.org is a domain I originated). 8. Also see http://perl-begin.org/topics/cpan/ . 9. It's good that you're using XML::LibXML instead of parsing XML using regexes or using XML::Simple . --------------- Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/ Chuck Norris is the reason why OpenBSD is called OpenBSD. They wanted to call it LockedDownBSD but couldn't find a way to keep Chuck Norris out! (By Andrew Brehm) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/