http://qs321.pair.com?node_id=643279


in reply to Can locate when called directly, but can't when in @ISA

Check if both Lens and Cloud have a packagedeclaration. Blow are my working code snippets:

Main program:

#!/usr/bin/perl use strict; use warnings; use lib '/home/me/project/temp'; use Lens;

In '/home/me/project/temp' are Cloud.pm:

package Cloud; use strict; use warnings; 1;

and Lens.pm:

package Lens; use strict; use warnings; use lib '/home/me/project/temp'; use Cloud; our @ISA = qw(Exporter Cloud); 1;

Apart from the recommended strict and warnings, all</code> is necessary.