App-Todo
view release on metacpan or search on metacpan
bin/todo.pl view on Meta::CPAN
check_config();
}
sub check_config_perms {
return unless -e $CONFFILE;
my @stat = stat($CONFFILE);
my $mode = $stat[2];
if($mode & S_IRGRP || $mode & S_IROTH) {
warn("Config file $CONFFILE is readable by someone other than you, fixing.");
chmod 0600, $CONFFILE;
}
}
sub load_config {
return unless(-e $CONFFILE);
%config = %{LoadFile($CONFFILE) || {}};
my $sid = $config{sid};
if($sid) {
my $uri = URI->new($config{site});
$ua->cookie_jar->set_cookie(0, 'JIFTY_SID_HIVEMINDER',
bin/todo.pl view on Meta::CPAN
last if do_login();
print "That combination doesn't seem to be correct. Try again?\n";
}
save_config();
}
sub save_config {
DumpFile($CONFFILE, \%config);
chmod 0600, $CONFFILE;
}
sub version {
print "This is hiveminder.com's todo.pl version $VERSION\n";
}
=head1 TASKS
Methods related to manipulating tasks -- the meat of the script.
( run in 0.381 second using v1.01-cache-2.11-cpan-496ff517765 )