The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Template::Simple::IO

VERSION

version 0.91

SYNOPSIS

   TODO

DESCRIPTION

   TODO

NAME

Text::Template::Simple::IO - I/O methods

METHODS

new IO_LAYER

Constructor. Accepts an I/O layer name as the parameter.

layer FILE_HANDLE

Sets the I/O layer of the supplied file handle if there is a layer and perl version is greater or equal to 5.8.

slurp FILE_PATH

Returns the contents of the supplied file as a string.

validate TYPE, PATH

TYPE can either be dir or file. Returns the corrected path if it is valid, undef otherwise.

is_dir THING

Test if THING is a directory.

is_file THING

Test if THING is a file.

file_exists THING

Test if THING is a file. This method also searches all the include paths and returns the full path to the file if it exists.

AUTHOR

Burak Gursoy <burak@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2004 by Burak Gursoy.

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