Posted on 2007-09-24 14:29:58-07 by fafarun
Search a event.
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.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.