in reply to How do I write a new sub in a git cloned CPAN module and test it bypassing the Original Module

I git cloned DateTime module from cpan. I already had a DateTime installed. I added a new method in DateTime.pm and worte a test for a new method added.

All good so far.

Now when I tried to run the script it uses the already installed DateTime module and not the one I have modified.

How did you run the test script? By executing make test or some other means?

  • Comment on Re: How do I write a new sub in a git cloned CPAN module and test it by bypassing the Original Module
  • Download Code

Replies are listed 'Best First'.
Re^2: How do I write a new sub in a git cloned CPAN module and test it by bypassing the Original Module
by yysachinyy (Novice) on Dec 21, 2016 at 07:41 UTC
    I used 'prove' to run the test.
      > I used prove

      With the -l option?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,