[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Packages and cons
From: |
Wayne Scott |
Subject: |
Re: Packages and cons |
Date: |
Wed, 18 Jul 2001 08:56:45 -0500 |
Guys,
You can include a module into the toplevel Construct script and have
it available to all the subscripts. You just need to select the
destination package explicitly.
For example my Construct file looks like this:
BEGIN {
package cons;
use Mystuff;
}
$CONS = new cons;
$CONS->printhi; # call new method
Mystuff.pm looks like this:
package Mystuff;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(printhi);
sub printhi
{
print "hello\n";
}
1;
-Wayne
- Packages and cons, Gary Oberbrunner, 2001/07/17
- RE: Packages and cons, Jeff Rosenfeld, 2001/07/17
- RE: Packages and cons, Gary Oberbrunner, 2001/07/17
- RE: Packages and cons, Gary Oberbrunner, 2001/07/17
- Re: Packages and cons, Frank Thomas, 2001/07/18
- Re: Packages and cons, Johan Holmberg, 2001/07/18
- Re: Packages and cons, Frank Thomas, 2001/07/18
- Re: Packages and cons, Johan Holmberg, 2001/07/18
- Re: Packages and cons, Frank Thomas, 2001/07/18
- Re: Packages and cons,
Wayne Scott <=
- Re: Packages and cons, Johan Holmberg, 2001/07/18
- RE: Packages and cons, Gary Oberbrunner, 2001/07/18