NAME
Parse::Crontab - Perl extention to parse Vixie crontab file
VERSION
This document describes Parse::Crontab version 0.01.
SYNOPSIS
use Parse::Crontab;
my $crontab = Parse::Crontab->new(file => 'crontab.txt');
if ($crontab->is_valid) {
warn $crontab->error_message;
}
for my $job ($crontab->jobs) {
say $job->minute;
say $job->hour;
say $job->day;
say $job->month;
say $job->day_of_week;
say $job->command;
}
DESCRIPTION
This software is for parsing and validating Vixie crontab files.
INTERFACE
Functions
"is_valid()"
Checking crontab is valid or not.
"entries()"
returns all entries in crontab
"jobs()"
returns job entries in crontab
DEPENDENCIES
Perl 5.8.1 or later.
BUGS
All complex software has bugs lurking in it, and this module is no
exception. If you find a bug please either email me, or add the bug to
cpan-RT.
SEE ALSO
perl
AUTHOR
Masayuki Matsuki <y.songmu@gmail.com>
LICENSE AND COPYRIGHT
Copyright (c) 2013, Masayuki Matsuki. All rights reserved.
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.