Skip Menu |

This queue is for tickets about the Date-Simple CPAN distribution.

Report information
The Basics
Id: 32250
Status: new
Priority: 0/
Queue: Date-Simple

Owner: izut [...]
Requestors: CLAESJAC [...]

Bug Information
Severity: Normal
Broken in: 3.02
Fixed in: (no value)


Subject: Subclassing issues with method "today"
Download (untitled) / with headers
text/plain 306b
The method "today" (and "d8" and "ymd") blesses the returned object into the superclass and not my derived class. The work around is to redefine them as done in ::ISO etc but that makes them use the internal API which is not quite so nice to have to do. The attached file shows the bug. Cheers, Claes
#!/usr/bin/perl package FooDate; use base qw(Date::Simple::ISO); my $v = FooDate->today; print ref $v, "\n"; # Should print FooDate but prints Date::Simple::ISO

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to