WWW-HtmlUnit

 view release on metacpan or  search on metacpan

eg/google_calendar_upload.pl  view on Meta::CPAN


use strict;
use WWW::HtmlUnit;

# Put in your username and password, and then pass this script an .ics file.
# It'll upload it into your default google calendar

my $google_username = 'XXXXXXX';
my $google_password = 'XXXXXXX';

sub wait_for(&@) {
  my ($subref, $timeout) = @_;
  $timeout ||= 30;
  while($timeout) {
    return if eval { $subref->() };
    sleep 1;
    $timeout--;
  }
  die "Timeout!\n";
}



( run in 0.530 second using v1.01-cache-2.11-cpan-49f99fa48dc )