---
name: "Test::File::ShareDir::Module"
section: "3pm"
platform: "linux"
package: "libtest-file-sharedir-perl"
version: "1.001002-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Test::File::ShareDir::Module"
---

# Test::File::ShareDir::Module(3pm)

Simplified module oriented ShareDir tester

## NAME

Test::File::ShareDir::Module - Simplified module oriented ShareDir tester

## VERSION

version 1.001002

## SYNOPSIS

```
    use Test::File::ShareDir::Module {
        '-root' => "some/root/path",
        'Module::Foo' => "share/ModuleFoo",
    };
```

`"-root"` is optional, and defaults to `"cwd"`

**NOTE:** There's a bug prior to 5.18 with `"use Foo { -key => }"`, so for backwards compatibility, make sure you either quote the key: `"use Foo { '-key' => }"`, or make it the non-first key.

## AUTHOR

Kent Fredric \<kentnl@cpan.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Kent Fredric \<kentnl@cpan.org\>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
