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

# [NAME](#NAME)

Test::File::ShareDir::Dist - Simplified dist oriented ShareDir tester

# [VERSION](#VERSION)

version 1.001002

# [SYNOPSIS](#SYNOPSIS)

```
    use Test::File::ShareDir::Dist {
        '-root' => 'some/root/path',
        'Dist-Zilla-Plugin-Foo' => 'share/DZPF',
    };
```

"-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-24 perl v5.44.0

---

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