|
Hi,
I want use the lib config::crontab to use my crontab with a webinterface.
But I have a faw problems.
To create or to delete a event it's ok.
But I want create a script for search a event.
I do this :
#!/bin/perl -w
use Config::Crontab;
use strict;
my $ct;
my @comments = ();
my $v;
$ct = new Config::Crontab;
$ct->read;
#$ct->strict(0);
@comments = $ct->select( -type => 'comment',
-data => '## block 3' );
print "$comments[0]\n";
#print $ct->select;
#foreach $v (@comments) {
#print "$v\n";
# };
But It didn't good. I have nothing in response.
Can you say me where I do a mistake.
Thanks. |