GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
File::Slurp::WithinPolicy(3) User Contributed Perl Documentation File::Slurp::WithinPolicy(3)

File::Slurp::WithinPolicy - Applies filesystem policies to File::Slurp

  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' );

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).

See "read_dir" in File::Slurp

See "read_file" in File::Slurp

See "write_file" in File::Slurp

See "append_file" in File::Slurp

See "overwrite_file" in File::Slurp

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

File::Slurp, File::Policy

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

John Alden <cpan _at_ bbc _dot_ co _dot_ uk>

(c) BBC 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL.

See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt

2005-06-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.