in reply to Developing CGI::Application based modules outside of the default @INC
Your module/package is named Bufferlass::Bufferlass, and its relative file path is Bufferlass/Bufferlass.pm. Therefore you want:use Bufferlass; ... my $bufferlass = Bufferlass->new();
Or maybe you want to rename your package to just 'Bufferlass', and put the pm file in the directory above where it currently is. Look at where some of the standard modules are relative to @INC, and what their package names are (e.g. Env, File::Copy).use Bufferlass::Bufferlass; ... my $bufferlass = Bufferlass::Bufferlass->new();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Developing CGI::Application based modules outside of the default @INC
by LesleyB (Friar) on Apr 09, 2008 at 19:44 UTC |