error of importing DBI in Perl

后端 未结 2 1814
别那么骄傲
别那么骄傲 2021-01-28 23:59

I am writing the code in Perl and try to save it in the extension .pm not .pl

and I use use DBI; to import the DBI in order that

2条回答
  •  借酒劲吻你
    2021-01-29 00:59

    You probably simply miss the "1;" at the end of the .pm file.

    Perl modules always have to return a "true" value. This is accomplished by simply putting "1;" at the end of the file.

    More information can be found in the example code of Perl Modules in the perlmod documentation.

提交回复
热议问题