| File-Butler documentation | view source | Contained in the File-Butler distribution. |
File::Butler - Handy collection of file-related tools.
Version 4.0.0
A collection of basic file manipulation tools.
As of version 4.0.0, File::Butler is built around Moose.
use File::Butler;
my $fb = File::Butler->new( 'filename' => 'myfile.txt' );
my $contents = $fb->read();
my $retval = $fb->append( "Text to be appended." );
my $retval = $fb->prepend( "Text to be prepended to the beginning of the file." );
Please note that "filename" is a required element during invocation. In cases where file contents are to be returned, contents are returned either as an array or an array reference, depending upon how the method is called.
Kurt Kincaid, <kurt.kincaid at gmail.com>
Please report any bugs or feature requests to bug-file-butler at rt.cpan.org, or through
the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Butler. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc File::Butler
You can also look for information at:
Copyright 2010 Kurt Kincaid.
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.
| File-Butler documentation | view source | Contained in the File-Butler distribution. |