Skip to content

Instantly share code, notes, and snippets.

@aero aero/gist:284520

Created Jan 23, 2010
Embed
What would you like to do?
#!/usr/bin/env perl
use strict;
use warnings;
use Schedule::Cron;
use Net::Twitter::Lite;
my $cron = Schedule::Cron->new( sub {} );
$cron->add_entry( '0 0-23 * * *', \&twit );
$cron->run( detach => 0 );
sub twit {
my $t = Net::Twitter::Lite->new ( username => 'user', password => 'pass' );
$t->update( scalar localtime() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.