Say I've got a function that takes a duration. I could 1) require the user to do DateTime::Duration->new(...); 2) take a listref argument containing the params, e.g. [days=>1] and do the creation myself 3) be flexible and take either argument, distinguishing the two by isa()
Any advice from others that have written APIs using durations? Jon