Test::File::ShareDir::Module(3) User Contributed Perl Documentation Test::File::ShareDir::Module(3)

# [NAME](#NAME)

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

# [VERSION](#VERSION)

version 1.001002

# [SYNOPSIS](#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 =&gt; }", so for backwards compatibility, make sure you either quote the key: "use Foo { '-key' =&gt; }", or make it the non-first key.

# [AUTHOR](#AUTHOR)

Kent Fredric &lt;kentnl@cpan.org&gt;

# [COPYRIGHT AND LICENSE](#COPYRIGHT_AND_LICENSE)

This software is copyright (c) 2017 by Kent Fredric &lt;kentnl@cpan.org&gt;.

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

2026-10-26 perl v5.44.0

---

Document: Test::File::ShareDir::Module(3pm) from perl-test-file-sharedir 1.001002-r3 (Chainguard OS)
Source: https://github.com/kentnl/Test-File-ShareDir
