I don't see a way with the modules in question to connect w/o having an ics file ?

Um, but I thought you already connected, you gave it a url, thats all you had to do to make a connection, the url is the file, it doesn't matter how the webserver stores it on the webserver, the url is what you're getting/editing/updating...

Try this next  print Dumper( $cal->cal ); this should fetch the calendar from the webserver, so you can read it update program for you

#!/usr/bin/perl -- use strict; use warnings; use Data::Dumper (); Main( @ARGV ); exit( 0 ); sub Main { my $user = "test"; my $pass = "test"; my $url = "http://baikal.local/cal.php/principals/test/testshift" +; my $cal = Cal::DAV->new( user => $user, pass => $pass, url => $url, auto_commit => 0, ## don't ->save any changes, we're testing h +ere ); dd( $cal->errors ); dd( $cal->cal ); dd( $cal ); } sub dd { use Data::Dumper; print Data::Dumper->new([@_])->Sortkeys(1) ->Indent(1)->Useqq(1)->Dump . "\n"; }

Then to add entries call add_entries ... to figure out what you need add  print Dumper( make_entry() ); to  Cal-DAV-0.6/t/01basics.t and examine the output (show me)

Also try dave , CalDav is just WebDav which is just HTTP get :)

dave -tmpdir ./i-baikal-tmp -debug 3 -u test -p test "http://baikal.local/cal.php/principals/test/" ... dave> get testshift dave> quit

This should download the testshift database and save it in -tmpdir (or cwd)


In reply to Re^3: Using Perl to add entries in iCal Calendar (cpan secrets) by Anonymous Monk
in thread Using Perl to add entries in iCal Calendar by hoschi

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.