You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Frantzcy Paisible <fr...@softvoyage.com> on 2003/09/26 17:21:51 UTC
variable exporting
Hi all,
I've converted all perl4 .lib files to .pm. Now I cannot access my subs without specifying the full name Packname::SubName.
I've exported the sub names, but I still get the "undefined" error.
Any ideas ?
Frantzcy
Re: variable exporting
Posted by Frantzcy Paisible <fr...@softvoyage.com>.
duh!
Sorry, in all the moving around they , it kinda disapeared. I got some other issues with some requires and uses... think I can handle them
Thanx for your help
Frantzcy
On 26 Sep 2003 11:58:25 -0400,Perrin Harkins <pe...@elem.com> wrote:
> On Fri, 2003-09-26 at 11:53, Frantzcy Paisible wrote:
> > I PerlModule the package directy via httpd.conf
>
> You have to also use the module from your Registry script if you want
> the import to happen.
>
> - Perrin
--
Unreachability is bliss
Re: variable exporting
Posted by Perrin Harkins <pe...@elem.com>.
On Fri, 2003-09-26 at 11:53, Frantzcy Paisible wrote:
> I PerlModule the package directy via httpd.conf
You have to also use the module from your Registry script if you want
the import to happen.
- Perrin
Re: variable exporting
Posted by Frantzcy Paisible <fr...@softvoyage.com>.
The command line does not work, I get the undefined error..,
My exporting is basically a copy-paste from the docs. With or without the BEGIN, no go..
Can't find init1
Note:
I PerlModule the package directy via httpd.conf
I even put init in EXPORT, instead of EXPORT_OK
#BEGIN {
use Exporter ();
use vars qw( @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
@ISA = qw(Exporter);
@EXPORT_OK = qw();
@EXPORT = qw(init1);
%EXPORT_TAGS = (
vars => [qw($fname $lname)],
subs => [qw(reread_conf untaint_path)],
);
Exporter::export_ok_tags('vars');
Exporter::export_ok_tags('subs');
#}
Frantzcy
On 26 Sep 2003 11:40:25 -0400,Perrin Harkins <pe...@elem.com> wrote:
> On Fri, 2003-09-26 at 11:21, Frantzcy Paisible wrote:
> > I've converted all perl4 .lib files to .pm.
>
> Hooray!
>
> > I've exported the sub names, but I still get the "undefined" error.
>
> Probably a bug in your exporting code. Does it find the sub from a
> command-line test? perl -e 'use MyModule; my_exported_sub();'
>
> - Perrin
--
Unreachability is bliss
Re: variable exporting
Posted by Perrin Harkins <pe...@elem.com>.
On Fri, 2003-09-26 at 11:21, Frantzcy Paisible wrote:
> I've converted all perl4 .lib files to .pm.
Hooray!
> I've exported the sub names, but I still get the "undefined" error.
Probably a bug in your exporting code. Does it find the sub from a
command-line test? perl -e 'use MyModule; my_exported_sub();'
- Perrin