Galdor has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Syntax - What's the difference?
by Corion (Patriarch) on Apr 09, 2018 at 11:50 UTC | |
by Galdor (Sexton) on Apr 09, 2018 at 12:13 UTC | |
|
Re: Perl Syntax - What's the difference?
by Your Mother (Archbishop) on Apr 09, 2018 at 12:20 UTC | |
|
Re: Perl Syntax - What's the difference?
by LanX (Saint) on Apr 09, 2018 at 12:06 UTC | |
by Corion (Patriarch) on Apr 09, 2018 at 12:08 UTC | |
by LanX (Saint) on Apr 09, 2018 at 12:47 UTC | |
by Corion (Patriarch) on Apr 09, 2018 at 12:56 UTC | |
by LanX (Saint) on Apr 09, 2018 at 13:09 UTC |