Re: OT? Perl Question, iCal

2012-06-02 Thread Dirk Koopman

On 01/06/12 21:59, Simon Wistow wrote:

it's dog slow (fcvo 'dog')


I find my values of dog don't really apply (being Border Terriers), or 
are unhelpful in these circumstances.


Try: snail on mogodon. Less variability and very, very slow.




Re: OT? Perl Question, iCal

2012-06-01 Thread Simon Wistow
On Tue, May 22, 2012 at 02:48:05PM +0100, Roger Burton West said:
 On Tue, May 22, 2012 at 03:35:51PM +0200, Nic Gibson wrote:
 search.cpan.org gives me far too many results for iCal. I need to parse 
 iCalendar (rfc 5545) files and then write them out as xCal (rfc 6321) files. 
 Does anyone have a particular recommendation for a module? Writing the XML 
 isn't the issue for me - it's more the parsing iCalendar files. Suggestions?
 
 Date::ICal seems to get the basic job done. Data::ICal::DateTime is
 great but dog-slow (or perhaps it's my programming). Other opinions are
 probably at least as valid as mine.

I second Data::ICal - it's dead easy and it can read and generate. It 
uses Text::vFile underneath for parsing.

Data::ICal::DateTime basically just adds DateTime support in and, you're 
right, it's dog slow (fcvo 'dog'). It's mostly my programming rather 
than yours I suspect although also partly DateTime (correctness comes at 
a price) and also the overhead of working out recurring events and 
whatnot.




Re: OT? Perl Question, iCal

2012-05-31 Thread Simon Cozens

On 22/05/2012 22:35, Nic Gibson wrote:

search.cpan.org gives me far too many results for iCal.


Text::vFile is my weapon of choice for v-flavoured file formats, of which 
iCalendar is a variant.





OT? Perl Question, iCal

2012-05-22 Thread Nic Gibson
This appears to be my first message to london.pm in four years or so. Ho hum.

search.cpan.org gives me far too many results for iCal. I need to parse 
iCalendar (rfc 5545) files and then write them out as xCal (rfc 6321) files. 
Does anyone have a particular recommendation for a module? Writing the XML 
isn't the issue for me - it's more the parsing iCalendar files. Suggestions?

cheers

nic
--
Corbas Consulting / @CorbasLtd
Digital Publishing Consultancy and Training
http://www.corbas.co.uk, +44 (0)7718 906817/+44 (0)1273 930765  





Re: OT? Perl Question, iCal

2012-05-22 Thread Roger Burton West
On Tue, May 22, 2012 at 03:35:51PM +0200, Nic Gibson wrote:
search.cpan.org gives me far too many results for iCal. I need to parse 
iCalendar (rfc 5545) files and then write them out as xCal (rfc 6321) files. 
Does anyone have a particular recommendation for a module? Writing the XML 
isn't the issue for me - it's more the parsing iCalendar files. Suggestions?

Date::ICal seems to get the basic job done. Data::ICal::DateTime is
great but dog-slow (or perhaps it's my programming). Other opinions are
probably at least as valid as mine.

Roger


Re: OT? Perl Question, iCal

2012-05-22 Thread Nic Gibson

On 22 May 2012, at 18:10, David Cantrell wrote:

 On Tue, May 22, 2012 at 03:35:51PM +0200, Nic Gibson wrote:
 
 search.cpan.org gives me far too many results for iCal. I need to parse 
 iCalendar (rfc 5545) files and then write them out as xCal (rfc 6321) files. 
 Does anyone have a particular recommendation for a module? Writing the XML 
 isn't the issue for me - it's more the parsing iCalendar files. Suggestions?
 
 I was looking at something along these lines a few days ago, and gave up
 in disgust at the documentation for everything iCal-ish.
 
 Sorry, that's not very helpful is it.

I'm fairly glad you said it though. I was beginning to feel the same way. 

nic

 
 -- 
 David Cantrell | Enforcer, South London Linguistic Massive
 
 Do not be afraid of cooking, as your ingredients will know and misbehave
   -- Fergus Henderson

--
Corbas Consulting / @CorbasLtd
Digital Publishing Consultancy and Training
http://www.corbas.co.uk, +44 (0)7718 906817/+44 (0)1273 930765  





Re: OT? Perl Question, iCal

2012-05-22 Thread David Cantrell
On Tue, May 22, 2012 at 03:35:51PM +0200, Nic Gibson wrote:

 search.cpan.org gives me far too many results for iCal. I need to parse 
 iCalendar (rfc 5545) files and then write them out as xCal (rfc 6321) files. 
 Does anyone have a particular recommendation for a module? Writing the XML 
 isn't the issue for me - it's more the parsing iCalendar files. Suggestions?

I was looking at something along these lines a few days ago, and gave up
in disgust at the documentation for everything iCal-ish.

Sorry, that's not very helpful is it.

-- 
David Cantrell | Enforcer, South London Linguistic Massive

Do not be afraid of cooking, as your ingredients will know and misbehave
   -- Fergus Henderson