neversaint has asked for the wisdom of the Perl Monks concerning the following question:
The overall code directory structure look simply like this:#!/usr/bin/perl -w # mycode.pl use 'modules_src/MyPackage'; # how can do this correctly? my $start = new Sth::MyPackage; # etc...
And inside MyPackage.pm looks like this~/MyPerl | |_modules_src |_MyPackage.pm | |_mycode.pl
I am aware and have tested that executing mycode.pl is perfectly fine when I moved MyPackage.pm outside modules_src/, and use MyPackage; in mycode.pl. But my intention is to group those packages in one subdirectory.package Sth:MyPackage; use 5.005; use strict; use vars qw( @ISA $VERSION ); # etc2... 1;
|
|---|