perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto C. Sánchez <>
Subject Re: Undefined subroutine error
Date Tue, 14 Apr 2009 16:48:10 GMT
On Tue, Apr 14, 2009 at 12:36:25PM -0400, Perrin Harkins wrote:
> On Tue, Apr 14, 2009 at 8:38 AM, Roberto C. Sánchez
> <> wrote:
> > OK, so the changes to include the mod_include and mod_disk_cache on the
> > production server did not do the trick.  The problem persists.
> I think it's all about the way you export your function, but you
> haven't answered my question about how you call it.
Sorry, I thought that you were asking how I loaded the module.  It
appears that you want to know how I call the specific function.

As far as loading the module, I have tried:

 - "PerlModule Example::Image" in .htaccess
 - "use Example::Image;" in the main HTML::Mason component

As far as calling the function:

 - get_image_data('masthead.png', $urls{'img'}, $dirs{'img'});
 - Example::Image::get_image_data('masthead.png', $urls{'img'}, $dirs{'img'});

As far as "exporting", I'm not sure to what you are referring.



Roberto C. Sánchez

View raw message