Open srchulo opened 5 years ago
Could you please please provide me with a reproducible test case?
It looks like the documentation is wrong. [reduced => 1]
should be reduced => 1
Parameters enclosed in the [
and ]
notation are optional and can be omitted. I have tried to use this notation consistently in Time::Moment where the value of the named parameter shows the default.
This report relates to #20.
I've tried to get a reduced string as mentioned in the documentation:
my $time = Time::Moment->now->to_string([reduced => 1]);
But I get this error:
Odd number of elements in named parameters
I've also tried
my $time = Time::Moment->now->to_string(reduced => 1);
and
my $time = Time::Moment->now->to_string(1);
And those do not work either.