Skip Menu |

This queue is for tickets about the Config-Crontab CPAN distribution.

Report information
The Basics
Id: 32377
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Config-Crontab

People
Owner: scott [...] mailblock.net
Requestors: T.Haecker [...] gmx.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Possible bug in Config::Crontab?
Date: Thu, 17 Jan 2008 14:04:33 +0100
To: bug-config-crontab [...] rt.cpan.org
From: "Thomas Häcker" <T.Haecker [...] gmx.net>
Hi, i am using Config::Crontab and discovered a problem, i am not sure whether its a bug or if i didn't unterstand it. My environment: h938783:~# uname -a Linux <mylinuxbox> 2.6.9-023stab044.16-enterprise #1 SMP Fri Nov 23 20:56:09 MSK 2007 i686 GNU/Linux h938783:~# perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi Config-Crontab 1.21 If i use: my $crontab = new Config::Crontab; $crontab->owner('lmftp'); my @entries = $crontab->select( -type => 'event' ); I would expect to have the crontab events in my array @entries. But if i i.e. print @entries[0] i see something like "Cronfig::Crontab::Event=HASH(0x8830c38)" instead of i.e. "* * * * * /usr/bin/foo" Is this the normal behaviour? What would be the right way to get "* * * * * /usr/bin/foo"? Thank you in advance. Best regards, Thomas -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
Sorry, I'm not the author of this module.
On Thu Jan 17 08:05:03 2008, T.Haecker@gmx.net wrote: Show quoted text
> If i use: > > my $crontab = new Config::Crontab; > $crontab->owner('lmftp'); > my @entries = $crontab->select( -type => 'event' ); > > I would expect to have the crontab events in my array @entries. > But if i i.e. print @entries[0] i see something like > "Cronfig::Crontab::Event=HASH(0x8830c38)" instead of i.e. "* * * * * > /usr/bin/foo" > > Is this the normal behaviour? > What would be the right way to get "* * * * * /usr/bin/foo"?
See $event->dump or $event->data in the Config::Crontab::Event documentation. Scott