I want to use the Net::Google::Calendar Api. Whenever I start the script, it gives the this error:

Died at /usr/share/perl/5.10/base.pm line 93.
BEGIN failed--compilation aborted at XML/Atom/Feed.pm line 5.
Compilation failed in require at Net/Google/Calendar.pm line 12.
BEGIN failed--compilation aborted at Net/Google/Calendar.pm line 12.
Compilation failed in require at gcal.pl line 14.
BEGIN failed--compilation aborted at gcal.pl line 14.

What is my mistake??? Thanks for your help!

The Script:
#!/usr/bin/perl -w print "Content-Type: text/html\n\n"; use CGI; use CGI::Carp qw( fatalsToBrowser ); use Date::Calc qw(:all); use HTTP::Request::Common; use LWP::UserAgent; use Time::Local; use File::Copy; use File::Path; use PDF::Create; use DBI; use Net::Google::Calendar; use MIME::Base64 qw(encode_base64); $query = new CGI; ######### Set ######### $func = ($query->param('func')); ######### Main Routing ######### &header; if (!$func) {&main;} elsif ($func eq "main") {&main;} &footer; exit; ######### Subs ######### ######### Main ######### sub main { $username='myadress\@googlemail.com'; $password='mypassword'; $cal = Net::Google::Calendar->new; $cal->login( $username, $password ); @calendars = $cal->get_calendars; foreach $element (@calendars) { print <<HTML; $element<br/> HTML } } ######### Header ######### sub header { print <<HTML; <html> <head> <TITLE>Milas-Events</TITLE> <META NAME="Title" CONTENT="www.milas-events.de"> <META NAME="Author" CONTENT="Michael Lucassen"> <META NAME="Copyright" CONTENT="Michael Lucassen"> <META NAME="Language" CONTENT="Deutsch"> <META NAME="resource-type" CONTENT="document"> <META NAME="revisit-after" CONTENT="30 days"> <META NAME="classification" CONTENT="Info"> <META NAME="description" CONTENT="Willkommen bei www.milas-events.de"> <META NAME="keywords" CONTENT="Events, Veranstaltungstechnik, VT, DMX, + "> <META HTTP-EQUIV="Expires" CONTENT="0"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1 +"> <meta http-equiv="Content-Language" content="de"> </head> <body text="#000000" link="#000000" vlink="#000000" alink="#000000"> <center> HTML } ######### Footer ######### sub footer { print <<HTML; </center> </body> </html> HTML } ######### EOF #########

In reply to Net:Google:Calender fails to run by Milasevents

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.