Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by lyklev (Pilgrim)
on Oct 07, 2007 at 14:19 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found