Toader::Page::Helper - Misc helper methods for pages.
Version 0.1.0
This initializes this object.
This method will not error.
my $foo = Toader::Page::FileHelper->new();
This returns the page directory.
This requires setDir to be called previously.
If setDir has been successfully called, this will not error.
my $pageDirectory=$foo->pageDirectory; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); }
This checks if the specified page exists.
One argument is accepted and it is the page in question.
my $retruned=$foo->pageExists($page); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } if($returned){ print "It exists.\n"; }
This sets the directory to operate on.
One argument is required. It is the directory to use.
$foo->setDir($directory); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); }
This builds a summary of of the the pages.
This verifies that the name is a valid file name.
One arguemnet is taken and that is the name of the page name to check.
This will not error. If the name is not defined, false, '0', will be returned as undefined is not a valid name.
my $valid=$foo->validPageName($name); if($valid){ print '"'.$name.'" is a valid name.'; }
Not a Toader directory.
No directory specified.
No page specified.
No directory has been set yet.
The page name is not valid.
Failed to initialize Toader::Page::Helper.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-toader at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-toader at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Toader::Page::Helper
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Toader
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Toader
CPAN Ratings
http://cpanratings.perl.org/d/Toader
Search CPAN
http://search.cpan.org/dist/Toader/
Copyright 2011 Zane C. Bowers-Hadley.
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.
To install Toader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Toader
CPAN shell
perl -MCPAN -e shell install Toader
For more information on module installation, please visit the detailed CPAN module installation guide.