App-Todo
view release on metacpan or search on metacpan
bin/todo.pl view on Meta::CPAN
%config = %{LoadFile($CONFFILE) || {}};
my $sid = $config{sid};
if($sid) {
my $uri = URI->new($config{site});
$ua->cookie_jar->set_cookie(0, 'JIFTY_SID_HIVEMINDER',
$sid, '/', $uri->host, $uri->port,
0, 0, undef, 1);
}
if($config{site}) {
# Somehow, localhost gets normalized to localhost.localdomain,
# and messes up HTTP::Cookies when we try to set cookies on
# localhost, since it doesn't send them to
# localhost.localdomain.
$config{site} =~ s/localhost/127.0.0.1/;
}
}
sub check_config {
new_config() unless $config{email};
}
( run in 0.931 second using v1.01-cache-2.11-cpan-e9199f4ba4c )