File::Slurp::WithinPolicy(3pm)

File::Slurp::WithinPolicy3pm

Applies filesystem policies to file::slurp

Usage

  use File::Slurp::WithinPolicy qw(:all);
  my $text = read_file( 'filename' );
  my @lines = read_file( 'filename' );
  write_file( 'filename', $text );
  append_file( 'filename', $more_text );
  overwrite_file( 'filename', $text );
  my @files = read_dir( '/path/to/dir' );

Overview

This provides the File::Slurp interface within a policy defined by File::Policy. By default, File::Policy is a no-op and this behaves identically to File::Slurp. System administrators may want to override the default File::Policy implementation to enforce a local filesystem policy (see File::Policy).

Functions

read_dir

See "read_dir" in File::Slurp

read_file

See "read_file" in File::Slurp

write_file

See "write_file" in File::Slurp

append_file

See "append_file" in File::Slurp

overwrite_file

See "overwrite_file" in File::Slurp

Exports

By default, nothing is exported. The ":all" tag can be used to export everything. Individual methods can also be exported.

Version

$Revision: 1.4 $ on $Date: 2005/06/15 10:40:21 $ by $Author: simonf $

Releases

9 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–8
  2. 9–10
  3. 11
  4. 12–13

Author

John Alden <cpan _at_ bbc _dot_ co _dot_ uk>

From libfile-policy-perl 1.005-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.