![]() |
![]()
| ![]() |
![]()
NAMEText::Template::Simple::IO VERSIONversion 0.91 SYNOPSISTODO DESCRIPTIONTODO NAMEText::Template::Simple::IO - I/O methods METHODSnew IO_LAYERConstructor. Accepts an I/O layer name as the parameter. layer FILE_HANDLESets 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_PATHReturns 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 THINGTest if "THING" is a directory. is_file THINGTest if "THING" is a file. file_exists THINGTest if "THING" is a file. This method also searches all the "include paths" and returns the full path to the file if it exists. AUTHORBurak Gursoy <burak@cpan.org> COPYRIGHT AND LICENSEThis 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.
|