Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Using File::ShareDir in development

by Anonymous Monk
on May 07, 2019 at 22:03 UTC ( #1233443=note: print w/replies, xml ) Need Help??


in reply to Using File::ShareDir in development

The proper way to do this is with Test::File::ShareDir. You just need an extra line of boilerplate in your test pointing to the local directory: use Test::File::ShareDir -share => { -dist => { 'Name-Of-Your-Distribution' => 'share/somefolder' } }; Then, normal calls to File::ShareDir::dist_dir will find the local folder, before looking in your @INC directories for the installed sharedirs. -ether@cpan.org
  • Comment on Re: Using File::ShareDir in development

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2019-12-06 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (160 votes). Check out past polls.

    Notices?