On Mon, 1 May 2006, Jerrad Pierce wrote: > PS> Of course, it'd be good if as_list was context sensitive so it could > optimize that.
... it'd be even better if there was an obvious way to solve a common task like this. How long would it take the average Perl programmer to a) find DateTime::Event::Recurrence in the DateTime docs and b) understand that the scalar context of a function returns the number of elements? And the lingo isn't even accurate: If as_list() truly returned a list, the result in scalar context would be largely surprising. I guess it returns an array, not a list, right? Probably something like subtract_datetime_absolute_in_days() would be easier to grasp (referring to subtract_datetime_absolute() which does something similar). Or maybe even something like $from->full_days_to($to); would do the trick? -- Mike Mike Schilli [EMAIL PROTECTED]