---
name: "Poet::Util::File"
section: "3pm"
platform: "linux"
package: "libpoet-perl"
version: "0.16-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Poet::Util::File"
---

# Poet::Util::File(3pm)

File utilities

## NAME

Poet::Util::File - File utilities

## SYNOPSIS

```
    # In a script...
    use Poet::Script qw(:file);
    # In a module...
    use Poet qw(:file);
    # In a component...
    <%class>
    use Poet qw(:file);
    </%class>
```

## DESCRIPTION

This group of utilities includes

- basename, dirname

  From File::Basename.

- mkpath, make\_path, rmtree, remove\_tree

  From File::Path.

- read\_file, write\_file, read\_dir

  From File::Slurp.

- abs2rel canonpath catdir catfile rel2abs

  From File::Spec::Functions.

## SEE ALSO

Poet

## AUTHOR

Jonathan Swartz \<swartz@pobox.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Jonathan Swartz.

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