Why my file should ending with "1;"?
In "http://perldoc.perl.org/functions/require.html", you will find: The file must return true as the last statement to indicate successful execution of any initialization code, so it's customary to end such a file with
[require Foo::Bar;]
look for "Foo/Bar.pm" in @INC.
In "http://perldoc.perl.org/functions/require.html", you will find: The file must return true as the last statement to indicate successful execution of any initialization code, so it's customary to end such a file with
1;
unless you're sure it'll return true otherwise.
[require Foo::Bar;]
look for "Foo/Bar.pm" in @INC.