Re: cal2rdf.pl > v1.13 does not like X-WR-CALNAME before PRODID

On Tue, 20 Jan 2004, olivier Thereaux wrote:

>
>
> On Jan 19, 2004, at 6:14, Libby Miller wrote:
> > I've done a quick fix for this, but my perl is very bad and I'm sure
> > others can suggest a better way of doing it - I open and close the file
> > twice.
>
> I am yet to familiarize with the code, but I think I found a way to do
> that without opening the file twice...
>
> If I am not mistaken you take all the output in a string and output it
> all once the whole file has been parsed. (cf sub printstr{} line 602).
> It means you could as well parse the whole file, and save the PRODID
> when it appears.
> Then at the EOF make the necessary subtitutions (you may have to use a
> "dummy" prodid during the parsing) in the output string.
>

That sounds good.

> I suppose that would be faster if the ics file is really big. If you
> want (and time permitting) I can send you a patch.

If you have time that would be fantastic (or just update the code and
I'll test it).

Thanks olivier,

Libby

Received on Tuesday, 20 January 2004 05:25:23 UTC