error of importing DBI in Perl -


i writing code in perl , try save in extension .pm not .pl

and use use dbi; import dbi in order can execute query.

and error compilation failed in require.

however, did use in script.pl , s okay.. works..

please , thank much

you miss "1;" @ end of .pm file.

perl modules have return "true" value. accomplished putting "1;" @ end of file.

more information can found in example code of perl modules in perlmod documentation.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -