Now we can simply do:
$car->manufacture_date( '2004-05-11' ); # Perl has now coerced the data into a datetime object. print $car->manufacture_date->strftime('%a'); > Tue
And it will just work.
Moose gets way cooler.Lets check out some of Moose's other features. |
$car->manufacture_date( '2004-05-11' ); # Perl has now coerced the data into a datetime object. print $car->manufacture_date->strftime('%a'); > Tue
And it will just work.