[Brisbane-pm] Messing with Modules 2
Jacinta Richardson
jarich at perltraining.com.au
Fri Mar 16 23:04:08 PDT 2007
Martin Jacobs wrote:
> use input::Simple_Billycan_2_Stage qw(water_export);
...
> package Simple_Billycan_2_Stage;
Try changing this to be:
package input::Simple_Billycan_2_Stage;
Or, if you want "input" to merely be the directory name, then keep your original
package name but do:
use lib 'input';
use Simple_Billycan_2_Stage qw(water_export);
The package name has to be consistent where you define it and where you use it.
J
More information about the Brisbane-pm
mailing list