File::ShareDir::Override - Override directories returned by File::ShareDir
Run program.pl and make Foo::Bar think its distribution's shared directory is ./share:
perl -MFile::ShareDir::Override=Foo-Bar:./share program.pl
Pretend Foo::Bar's module shared directory is ./lib:
perl -MFile::ShareDir::Override=Foo::Bar:./lib program.pl
Top-level modules/distributions (e.g., Dancer or Plack) don't have any dashes or double colons in the name and can't be recognized, so they need an explicit :dist or :module between the name and path. Example:
perl -MFile::ShareDir::Override=Foo:module:./lib program.pl
Usage with prove:
PERL5OPT=-MFoo-Bar:./share prove sometests.t
Please report any bugs or feature requests through the issue tracker at https://github.com/odyniec/p5-File-ShareDir-Override/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
git clone https://github.com/odyniec/p5-File-ShareDir-Override.git
Michal Wojciechowski <email@example.com>
This software is copyright (c) 2014 by Michal Wojciechowski.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install File::ShareDir::Override, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.