Galdor has asked for the wisdom of the Perl Monks concerning the following question:
DBIC code used to work - using Moose, DBIC and DateTime (ymd(), and month_name()):
and now the DB schema changed (underscore introduced in column names):print $event->startdate->ymd(), " - ", $event->startdate->month_name() +;
and now it does not:print $event->start_date->ymd(), " - ", $event->start_date->month_name +();
So what's the difference? Why should the underscore throw this out? What is the correct syntax/escaping for this stuff (Perl has kooki syntax sometimes)...Can't locate object method "ymd" via package "2008-08-18" (perhaps you + forgot to load "2008-08-18"?) at ./test-dbic-schema.pl line 50.
Back to
Seekers of Perl Wisdom