On Thu, Jun 26, 2003 at 11:01:59PM -1000, Joshua Hoblitt said: > > $ics->parse( file => 'holidays.ics' ); > > If you really want to parse files please make it so you can pass in a > file-handle and not a filename. Also it'd be a lot more useful if you > could pass in a string or array as well.
hence the 'file', other options could be 'handle', 'string' or 'array' $ics->parse( handle => $handle ); $ics->parse( array => [EMAIL PROTECTED] ); $ics->parse( string => $stuff ); It could try and automagically do the right thing based on ref and ->isa but I've become wary of making stuff *too* smart > > $ics->export(); # dump it out as an ics file > > Should require a file-handle to write to. How about being able to get > a string or array back? My intention was to have it return a string by default but be able to take similar options to 'parse'. I presume I'm going to have to have a DateTime::Event::Ics or something which may or may not be recurring. Simon
