/usr/share/perl5/Poet/Util/File.pm is in libpoet-perl 0.15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | package Poet::Util::File;
$Poet::Util::File::VERSION = '0.15';
use File::Basename qw(basename dirname);
use File::Path qw();
use File::Slurp qw(read_dir read_file write_file);
use File::Spec::Functions qw(abs2rel canonpath catdir catfile rel2abs);
use List::MoreUtils qw(uniq);
use strict;
use warnings;
use base qw(Exporter);
File::Path->import( @File::Path::EXPORT, @File::Path::EXPORT_OK );
our @EXPORT_OK =
uniq( qw(abs2rel basename canonpath catdir catfile dirname read_file rel2abs write_file),
@File::Path::EXPORT, @File::Path::EXPORT_OK );
our %EXPORT_TAGS = ( 'all' => \@EXPORT_OK );
1;
__END__
=pod
=head1 NAME
Poet::Util::File - File utilities
=head1 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>
=head1 DESCRIPTION
This group of utilities includes
=over
=item basename, dirname
From L<File::Basename|File::Basename>.
=item mkpath, make_path, rmtree, remove_tree
From L<File::Path|File::Path>.
=item read_file, write_file, read_dir
From L<File::Slurp|File::Slurp>.
=item abs2rel canonpath catdir catfile rel2abs
From L<File::Spec::Functions|File::Spec::Functions>.
=back
=head1 SEE ALSO
L<Poet|Poet>
=head1 AUTHOR
Jonathan Swartz <swartz@pobox.com>
=head1 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.
=cut
|