G'day yysachinyy,
Welcome to the Monastery.
"I tried setting PERL5LIB and use lib pragma ... but din't help." [sic]
You don't show exactly what you did: here's some pointers.
"I would like to know how Perl gurus/monks solve and contribute to CPAN Module."
My basic process would be as follows. I'll reference the current DateTime module; however, this would be what I'd generally use for any module. You may have different methods for achieving each step — I'm certainly not trying to recommend you use different tools — but the order of steps should be much the same. And, of course, the commands I've used are just examples.
$ cd /some/base/work/dir $ mkdir DateTime $ cd DateTime
$ wget http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-1. +41.tar.gz $ tar zxvf DateTime-1.41.tar.gz > DateTime-1.41.INSTALL 2>&1 $ view DateTime-1.41.INSTALL # Check there's no errors $ cd DateTime-1.41
$ view README # That's "README.md" for this distro $ view INSTALL
$ cd lib $ vi DateTime.pm
$ cd ../t $ vi new_test.t
$ cd .. $ perl Makefile.PL $ make $ make test
$ make realclean $ # ... repeat commands already shown ...
See also: "PAUSE: The [Perl programming] Authors Upload Server".
— Ken
In reply to Re: How do I write a new sub in a git cloned CPAN module and test it by bypassing the Original Module
by kcott
in thread How do I write a new sub in a git cloned CPAN module and test it bypassing the Original Module
by yysachinyy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |