Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Can locate when called directly, but can't when in @ISA

by lyklev (Pilgrim)
on Oct 07, 2007 at 14:19 UTC ( #643279=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://643279]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-07-17 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (381 votes). Check out past polls.

    Notices?