Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by VinsWorldcom (Prior)
on Dec 20, 2016 at 18:28 UTC ( [id://1178233]=note: print w/replies, xml ) Need Help??


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

You could run the specific test you want by:

perl Makefile.PL make perl -Mblib t/testfile.t

That will execute t/testfile.t 'use'-ing blib as the source for your edited DateTime.pm module. Note 'blib' and subdirectories get created when you run 'make'.

  • 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 Jan 17, 2017 at 16:41 UTC

    Thanks. This works for me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1178233]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-19 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found