Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://643279]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-12-07 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?