有人能解釋我爲哪些目標程序員使用這個變體「包名」,就像DBIx :: Class模塊中的那個文件SQLite.pm一樣嗎? 全面上市: package # Hide from PAUSE
DBIx::Class::SQLAHacks::SQLite;
use warnings;
use strict;
use base qw(DBIx::Class::SQLMaker::SQL
我正試圖返回今天的生日。這就是我現在所擁有的,這是有效的,但我需要抓住月份和日子來輸入聲明。我想也許我可以從當地時間抓住他們,但那並沒有奏效。任何建議,將不勝感激。 sub author_birth {
my ($self) = @_;
my ($day,$month) = (localtime())[3..4];
my $author_result = $self-
我創建了一個模型lib/MyApp/Model/Foo.pm。它裏面: ...
sub bar {
my $schema = MyApp::Schem->connect("dbi:SQLite:data.db");
}
...
它工作正常,但是當我寫了這麼: ...
my $schema = MyApp::Schema->connect("dbi:SQLite:data.db