---
name: "Debian::LicenseReconcile::CopyrightTarget"
section: "3pm"
platform: "linux"
package: "license-reconcile"
version: "0.16"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Debian::LicenseReconcile::CopyrightTarget"
---

# Debian::LicenseReconcile::CopyrightTarget(3pm)

file patterns mapped to Debian copyright

## NAME

Debian::LicenseReconcile::CopyrightTarget - file patterns mapped to Debian copyright

## VERSION

Version 0.16

## SYNOPSIS

```
    use Debian::LicenseReconcile::CopyrightTarget;
    my $copyright_target = Debian::LicenseReconcile::CopyrightTarget->new;
    $copyright_target->parse($text);
```

## SUBROUTINES/METHODS

### new

This constructor returns an empty copyright target object.

### parse

This takes as an argument the copyright data. If the copyright data cannot be parsed by Debian::Copyright then the method returns undef and reports an error via Debian::LicenseReconcile::Errors.

### map\_directory

Takes a directory path and attempts to map the contents of that directory onto the copyright specification. It returns a hash reference containing that mapping.

### patterns

Returns the file to License and Copyright mapping.

## AUTHOR

Nicholas Bamber, `"<nicholas at periapt.co.uk>"`

## LICENSE AND COPYRIGHT

Copyright 2012, 2015, Nicholas Bamber `"<nicholas at periapt.co.uk>"`.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.
