Subject: | wish: better handling of null values in constructor |
I've got ICal rules stored in a database. I'd like to get a hashref from the database and pass it to to the constructor for this module with the least amount of effort. However, I ran into this error:
"invalid week day ()"
I believe the cause was that I gave this as part of my input:
'byday' => undef,
I would prefer a different behavior than the current one.
Either:
1. Just ignore keys with undefined values as if they weren't there (preferred).
or
2. Throw an error immediately that the parameters are invalid:
"undef is not an allowed value for 'byday'".
Thanks for the helpful module!
Mark